Advertisement
simeonshopov

Godzina vs Kong

Sep 16th, 2019
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. budget = float(input())
  2. static = int(input())
  3. clothes = float(input())
  4.  
  5. if static > 150:
  6.   clothes = clothes*0.9
  7.  
  8. expense = budget*0.1+static*clothes
  9.  
  10. if expense <= budget:
  11.   print("Action!")
  12.   print(f"Wingard starts filming with {(budget-expense):.2f} leva left.")
  13. else:
  14.   print("Not enough money!")
  15.   print(f"Wingard needs {(expense-budget):.2f} leva more.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement