PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
items = {"Nachos":6,"Pizza":6,"Cheeseburger":10,"Water":4,"Coke":5}
boys = 4
bill = 0
for i in range(boys):
order = input('')
if order in items:
bill += items[order]
elif order not in items:
bill += items['Coke']
else:
print('error')
# bill += items[order]
tax = (bill/100) * 7
total = bill + tax
print (total)
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run