Can Anyone Explain what I'm doing here that my ouput is this way?
The reason it is skipping over where things need to be entered is because you are not giving the program a chance to accept input at all. You are just using print()
. To accept input and store the response, use input()
, like so:
item = input("Choose the item you want to purchase (1 at a time)= ")
quantity = input("How Much you want to eat = ")
Then, you can use item
and quantity
to determine what to do next, for example:
if item == "1":
OrderList.append(["Burger"] * quantity)