Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- budget = float(input())
- destination = input()
- season = input()
- days = int(input())
- price = 0
- if destination == 'Dubai':
- if season == 'Winter':
- price = 45000
- elif season == 'Summer':
- price = 40000
- price *= 0.70
- elif destination == 'Sofia':
- if season == 'Winter':
- price = 17000
- elif season == 'Summer':
- price = 12500
- price *= 1.25
- elif destination == 'London':
- if season == 'Winter':
- price = 24000
- elif season == 'Summer':
- price = 20250
- total_price = price * days
- diff = abs(budget - total_price)
- if budget >= total_price:
- print(f'The budget for the movie is enough! We have {diff:.2f} leva left!')
- else:
- print(f'The director needs {diff:.2f} leva more!')
Add Comment
Please, Sign In to add comment