Advertisement
zarkoto223

Untitled

Nov 11th, 2022
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.53 KB | None | 0 0
  1. budget=float(input())
  2. statists_count=int(input())
  3. price_wear_per_statist=float(input())
  4.  
  5. decor=budget*0.1
  6. actor_suit_price=statists_count*price_wear_per_statist
  7. if statists_count>150:
  8.     actor_suit_price-=actor_suit_price*0.1
  9.  
  10. money_need=actor_suit_price+decor
  11.  
  12. if money_need>budget:
  13.         print("Not enough money!")
  14.         print(f"Wingard needs {money_need - budget:.2f} leva more.")
  15.  
  16.  
  17.  
  18. if money_need<=budget-decor:
  19.         print("Action!")
  20.         print(f"Wingard starts filming with {budget - money_need:.2f} leva left.")
Tags: wrong
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement