Advertisement
veronikaaa86

05. Godzilla vs. Kong

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