exDotaPro

7_april_2019_2_godzilla_vs_kong

Jan 21st, 2020
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. movie_budget = float(input())
  2. extras_count = int(input())
  3. price_for_clothes_per_extra = float(input())
  4.  
  5. stage_price = movie_budget * 0.1
  6. total_price_for_clothes = price_for_clothes_per_extra * extras_count
  7.  
  8. if extras_count > 150:
  9.     total_price_for_clothes *= 0.9
  10.  
  11. final_bill = movie_budget - (stage_price + total_price_for_clothes)
  12.  
  13. if final_bill >= 0:
  14.     print('Action!')
  15.     print(f'Wingard starts filming with {final_bill:.2f} leva left.')
  16. else:
  17.     print('Not enough money!')
  18.     print(f'Wingard needs {abs(final_bill):.2f} leva more.')
Advertisement
Add Comment
Please, Sign In to add comment