I am working on an assignment for school, and this program is SUPER easy, but my if statement isn't working properly. Does anybody know why? Here is the code:
letter = input("Name one of the most common letters in wheel of fortune puzzles: ")
if letter == "r":
print(letter, "is one of the most common letters!")
if letter == "s":
print(letter, "is one of the most common letters!")
if letter == "t":
print(letter, "is one of the most common letters!")
if letter == "l":
print(letter, "is one of the most common letters!")
if letter == "n":
print(letter, "is one of the most common letters!")
if letter == "e":
print(letter, "is one of the most common letters!")
else:
print("Incorrect!")
letter = input("Name one of the most common letters in wheel of fortune puzzles: ")
input("\n\nPress the enter key to exit:")
Aucun commentaire:
Enregistrer un commentaire