Here is a simple python program of Concession Stand that are Found Near Theatres.
Just copy the code and paste it in your preferred Code Editor.
if you have any Doubt Feel Free to comment down,Our team will Respond as soon as Possible.
Thanks for Reading,
Regards,
Team Dekoders.
CODE:
menu={"pizza":3.00,
"popcorn":4.50,
"fries":2.50,
"lemonade":4.00,
"large popcorn bucket":10.00,
"coke":3.00}
cart=[]
total=0
print("--------------Menu--------------")
for key,value in menu.items():
print(f"{key:25}:${value:.2f}")
print("--------------------------------")
while True:
food=input("Select an item (q to Quit) :").lower()
if food.lower() == "q":
break
elif menu.get(food) is not None:
cart.append(food)
print("------------Your Order---------")
for food in cart:
total+=menu.get(food)
print(food, end=" ")
print()
print(f"Total :${total:.2f}")