Advertisement
Spocoman

Movie Destination

Feb 24th, 2022 (edited)
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.72 KB | None | 0 0
  1. budget = float(input())
  2. destination = input()
  3. season = input()
  4. days = int(input())
  5. price = 0
  6.  
  7. if destination == "Dubai":
  8.     if season == "Winter":
  9.         price = 45000
  10.     elif season == "Summer":
  11.         price = 40000
  12.     price*= 0.70
  13. elif destination == "Sofia":
  14.     if season == "Winter":
  15.         price = 17000
  16.     elif season == "Summer":
  17.         price = 12500
  18.     price *= 1.25
  19. elif destination == "London":
  20.     if season == "Winter":
  21.         price = 24000
  22.     elif season == "Summer":
  23.         price = 20250
  24.  
  25. budget -= price * days
  26.  
  27. if budget < 0:
  28.     print(f"The director needs {abs(budget):.2f} leva more!")
  29. else:
  30.     print(f"The budget for the movie is enough! We have {budget:.2f} leva left!")
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement