Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- drink=input()
- sugar=input()
- count=int(input())
- if drink=="Espresso":
- if sugar=="Without":
- price=count*0.90*0.65
- elif sugar=="Normal":
- price=count*1.00
- elif sugar=="Extra":
- price=count*1.20
- if drink=="Espresso" and count>5:
- price*=0.75
- if drink=="Cappuccino":
- if sugar=="Without":
- price=count*1.00*0.65
- elif sugar=="Normal":
- price=count*1.20
- elif sugar=="Extra":
- price=count*1.60
- if drink=="Tea":
- if sugar=="Without":
- price=count*0.50*0.65
- elif sugar=="Normal":
- price=count*0.60
- elif sugar=="Extra":
- price=count*0.70
- if price>15:
- price*=0.80
- print("You bought {} cups of {} for {} lv.".format(count, drink, "%.2f"%price))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement