Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- product = input()
- quantity = int(input())
- date = int(input())
- price = {"Cake": {date <= 15: 24, date > 15: 28.70},
- "Souffle": {date <= 15: 6.66, date > 15: 9.80},
- "Baklava": {date <= 15: 12.60, date > 15: 16.98}}
- total = quantity * price[product][True]
- if date <= 22:
- if 100 <= total <= 200:
- total *= 0.85
- elif total > 200:
- total *= 0.75
- if date <= 15:
- total *= 0.9
- print(f"{total:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement