- Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
taqueria
correct
def main():
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
}
total_cost = 0.0 while True: try: item = input("Item: ").title() if item in menu: total_cost += menu[item] print(f"Total: ${total_cost:.2f}") except EOFError: print() # Print a new line for better formatting break if name == "main":
main()
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels