Computer Science, asked by grandpriest0705, 10 months ago

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 ronaldoChristiano
1

\huge{\mathfrak{\purple{h}\green{e}\red{l}\pink{l}\blue{o}}}

\huge\green{\mid{\underline{\overline{\textbf{ANSWER\:TIME!!!}}}\mid}}

\huge\red{\mid{\fbox{\tt{MY\:ANSWER...}}\mid}}

<body bgcolor=black><marquee direction="down"><font color=red>

⁉️⁉️⁉️

Its too helpful for me...

Follow me pleaseeeeee....

Similar questions