Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- item = input().lower()
- town = input().lower()
- quantity = float(input())
- if town == "sofia":
- if item == "coffee":
- print(quantity * 0.50)
- elif item == "water":
- print(quantity * 0.80)
- elif item == "beer":
- print(quantity * 1.20)
- elif item == "sweets":
- print(quantity * 1.45)
- elif item == "peanuts":
- print(quantity * 1.60)
- if town == "plovdiv":
- if item == "coffee":
- print(quantity * 0.40)
- elif item == "water":
- print(quantity * 0.70)
- elif item == "beer":
- print(quantity * 1.15)
- elif item == "sweets":
- print(quantity * 1.30)
- elif item == "peanuts":
- print(quantity * 1.50)
- if town == "varna":
- if item == "coffee":
- print(quantity * 0.45)
- elif item == "water":
- print(quantity * 0.70)
- elif item == "beer":
- print(quantity * 1.10)
- elif item == "sweets":
- print(quantity * 1.35)
- elif item == "peanuts":
- print(quantity * 1.55)
Add Comment
Please, Sign In to add comment