Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- product = input()
- quantity = int(input())
- def result():
- price = {"coffee": 1.5, "coke": 1.4, "water": 1, "snacks": 2}[product] * quantity
- return price
- print(f"{result():.2f}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement