ivantanchev

movie

Mar 8th, 2022
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. budge = float(input())
  2. num_of_crew = int(input())
  3. price_costume = float(input())
  4.  
  5. decor_price = budge * 0.1
  6. all_clothes = num_of_crew * price_costume
  7.  
  8. if num_of_crew > 150:
  9. all_clothes = all_clothes * 0.90
  10. total_expenses = all_clothes + decor_price
  11.  
  12. diff = abs(total_expenses - budge)
  13. if budge >= total_expenses:
  14. print("Action!")
  15. print(f"Wingard starts filming with {diff:.2f} leva left.")
  16. else:
  17. print("Not enough money!")
  18. print(f"Wingard needs {diff:.2f} leva more.")
  19.  
Advertisement
Add Comment
Please, Sign In to add comment