Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- product = input()
- city = input()
- quantity = float(input())
- price = 0
- if city == "Sofia":
- if product == "coffee":
- price = 0.50
- elif product == "water":
- price = 0.80
- elif product == "beer":
- price = 1.20
- elif product == "sweets":
- price = 1.45
- elif product == "peanuts":
- price = 1.60
- elif city == "Plovdiv":
- if product == "coffee":
- price = 0.40
- if product == "water":
- price = 0.70
- if product == "beer":
- price = 1.15
- if product == "sweets":
- price = 1.30
- if product == "peanuts":
- price = 1.50
- elif city == "Varna":
- if product == "coffee":
- price = 0.45
- if product == "water":
- price = 0.70
- if product == "beer":
- price = 1.10
- if product == "sweets":
- price = 1.35
- if product == "peanuts":
- price = 1.55
- price_final = price * quantity
- print(f'{price_final}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement