while order != (1, 2): print("Invalid Command") order = eval(input ("Enter Your Option?")) while order == (1, 2): price = [0, 120, 60] number = eval(input("How many do you want?")) This is a basic python program. I want to print "invalid command" when order is not equal to 1 and 2 and i want to print "how many do you want " if order is equal to 1 or 2. but when i type 1 it says invalid command and it asks me the number only when i type "(1, 2)"...
Answers
Answered by
1
⁉️⁉️⁉️
Its too helpful for me...
Follow me pleaseeeeee....
Similar questions