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 = quantity * 0.50
- elif product == 'water':
- price = quantity * 0.80
- elif product == 'beer':
- price = quantity * 1.20
- elif product == 'sweets':
- price = quantity * 1.45
- else:
- price = quantity * 1.60
- elif city == 'Plovdiv':
- if product == 'coffee':
- price = quantity * 0.40
- elif product == 'water':
- price = quantity * 0.70
- elif product == 'beer':
- price = quantity * 1.15
- elif product == 'sweets':
- price = quantity * 1.30
- else:
- price = quantity * 1.50
- else:
- if product == 'coffee':
- price = quantity * 0.45
- elif product == 'water':
- price = quantity * 0.70
- elif product == 'beer':
- price = quantity * 1.10
- elif product == 'sweets':
- price = quantity * 1.35
- else:
- price = quantity * 1.55
- print(price)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement