Sichanov

06_godzilla_vs_kong

Nov 8th, 2020
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. budget = float(input())
  2. number_statist = int(input())
  3. price_dress = float(input())
  4. decor_price = budget * 0.1
  5. dresses_price = number_statist * price_dress
  6. if number_statist > 150:
  7.     dresses_price *= 0.9
  8. needed_money = decor_price + dresses_price
  9. difference = abs(needed_money - budget)
  10. if needed_money > budget:
  11.     print("Not enough money!")
  12.     print(f"Wingard needs {difference:.2f} leva more.")
  13. else:
  14.     print("Action!")
  15.     print(f'Wingard starts filming with {difference:.2f} leva left.')
  16.  
Add Comment
Please, Sign In to add comment