Apr-20-2021, 12:07 PM
I am making a text-based game and I am trying to run this code but the last two lines don't work and any number including 1 2 and 3 are printing enter 1 2 or 3. Please help me with this I am kind of new to python.
the code:
the code:
num = input('''-Write a number between 1 to 3 to ask the parallel question. Don't forget to click enter after you enter the number!-. 1. Why are we going there? 2. Can I just go back home? 3. I am done\n''') elif int(num) != 1 or int(num) != 2 or int(num) != 3: print('enter 1 2 or 3') exit()