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