Im trying to figure out why "1" get me out of the loop but "2" doesnt. (started learning coding 2 days ago.)
num = input("answer:") while not num == ("1" or "2"): print("ERROR") num = input("answer:") else: print("GOOD!")
buran write Jan-11-2021, 03:32 PM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.