123456789101112131415161718192021222324252627 |
- menu = {
- "Baja Taco": 4.00,
- "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
- }
- def main():
- total = 0.0
- while True:
- try:
- dish = input("Item: :\t\t").title()
- except EOFError:
- break
- if dish in menu:
- total += menu[dish]
- print(f"Total: ${total:.2f}")
- if __name__ == "__main__":
- main()
|