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