Menu

How to collect the old input with the new input that i get from a list in a loop?

Reading 0:00
15s threshold

This is the cod

menu = {

"Baja Taco": 4.25,

"Burrito": 7.50,

"Bowl": 8.50,

"Nachos": 11.00,

"Quesadilla": 8.50,

"Super Burrito": 8.50,

"Super Quesadilla": 9.50,

"Taco": 3.00,

"Tortilla Salad": 8.00

}

try:

while True:

item = input("Item: ")

print ("totel:", menu[item])

except (EOFError , KeyError):

pass

print ()

Also how to make a $ came with the totel ?

submitted by /u/anas_mv
[link] [comments]