Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- product = input()
- sugar = input()
- quantity = int(input())
- total = quantity
- if product == 'Espresso':
- if sugar == 'Without':
- total *= 0.9 * 0.65
- elif sugar == 'Extra':
- total *= 1.2
- if quantity > 5:
- total *= 0.75
- elif product == 'Cappuccino':
- if sugar == 'Without':
- total *= 0.65
- elif sugar == 'Normal':
- total *= 1.2
- elif sugar == 'Extra':
- total *= 1.6
- elif product == 'Tea':
- if sugar == 'Without':
- total *= 0.5 * 0.65
- elif sugar == 'Normal':
- total *= 0.6
- elif sugar == 'Extra':
- total *= 0.7
- if total > 15:
- total *= 0.8
- print(f'You bought {quantity} cups of {product} for {total:.2f} lv.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement