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 Respuestas
+ 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.