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