Advertisement
veronikaaa86

05. Godzilla vs. Kong

Jul 9th, 2023
847
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. budget = float(input())
  2. count_statists = int(input())
  3. price_clothing_one = float(input())
  4.  
  5. decor_price = budget * 0.1
  6. all_clothes_sum = count_statists * price_clothing_one
  7.  
  8. if count_statists > 150:
  9.     all_clothes_sum = all_clothes_sum * 0.90
  10.  
  11. total_sum = decor_price + all_clothes_sum
  12.  
  13. diff = abs(budget - total_sum)
  14. if budget >= total_sum:
  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