Can you identify if Cody's name is spelled right? If so, then make a program that accepts four one-letter strings separated by space and print "Correct" if the inputted strings, combined in order, spell the name Cody correctly. If not, print "Wrong". It doesn't matter if it's in uppercase or lowercase, as long as it's spelled correctly, it's considered correct.
Now, will you take on this task?
name = "Cody"
input_name = "".join(input().split()).lower()
if name.lower() == input_name:
print("Correct")
else:
print("Wrong")
Comments
Leave a comment