variable1 = 0
while variable1 != "1" or variable1 != "2" or variable1 != "3":
variable1 = input ("Enter variable1: ")
print("Succes")
My code never goes out of the while loop even if the variable is assigned 1 or 2 or 3. Am I missing something here or doing something wrong? I never read any documentation about Python that said or statements wouldn't work in while loops. According to propositional calculus this should be correct because True or False or False = True
I am aware that I did not use integers by the way.
Thanks in advance!
!= todoing there? <ominous chanting> Kill theto! Kill theto! Kill theto! </ominous chanting>variable1 != to "1"is a syntax error. Why is the "to" in there?