Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- order_type = input()
- order_quantity = int(input())
- def sum_orders(order, quantity):
- result = None
- if order == 'coffee':
- result = float(quantity) * 1.50
- if order == 'water':
- result = float(quantity) * 1.00
- if order == 'coke':
- result = float(quantity) * 1.40
- if order == 'snacks':
- result = float(quantity) * 2.00
- return "%.2f" % result
- print(sum_orders(order_type, order_quantity))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement