PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
menu={"Pizza": 6 , "Nachos": 6 ,"Cheeseburger": 10,"Water": 4,"Coke": 5}
cost=0
order_1=input().split()
for order in order_1 :
if order not in menu:
tax=menu.get("Coke")*0.07
cost=cost+tax+menu.get("Coke")
else:
tax=menu.get(order)*0.07
cost=cost+menu.get(order)+tax
print(cost)
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run