+ 1

Ballpark orders

Yet another code that needs fixing: orders = input().split(' ') prices = { "Nachos":6, "Pizza":6, "Cheeseburger":10, "Water":4, "Coke":5 } final_price=0 for i in orders: if i in prices[orders]: final_price += i else: final_price += 5 final_price*=1.07 print(final_price)

28th Sep 2023, 9:51 PM
Annihilate
Annihilate - avatar
2 Answers
+ 2
It did! Thanks!
28th Sep 2023, 10:43 PM
Annihilate
Annihilate - avatar