PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
order = input()
words = len(order.split()) # Number of positions. To later figure out which ones are missing from the menu
six = order.count('Nachos') + order.count('Pizza')
ten = order.count('Cheeseburger')
four = order.count('Water')
five = order.count('Coke')
all_menu = six + ten + four + five
another = words - all_menu # Positions not on the menu
all_price = round(1.07 * (6*six + 10*ten + 4*four + 5*(five + another)),2)
print(all_price)
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run