0
Whatâs wrong with this code?
letter = input(âwrite a letter: â). lower() While letter != âmâ or letter != âiâ: print(âChoose âmâ or âiâ) letter = input(âwrite a letter: â). lower() Even though I input âmâ or âiâ the code enters the loop!
2 Answers
+ 1
letter = "niiii"
while letter not in ["m","i"]:
letter = input("only m or i: ")
print(letter)
0
Actually solved it with a âwhile Trueâ loop.