bl00dt3ars

06. Godzilla vs. Kong (2)

Oct 14th, 2020 (edited)
151
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. extra = int(input())
  3. clothing_extra = float(input())
  4.  
  5. sum_extra_clothing = clothing_extra * extra
  6. decor = budget * 0.10
  7. total_sum = sum_extra_clothing + decor
  8.  
  9. if extra > 150:
  10.     discount = sum_extra_clothing * 0.10
  11.     total_sum = total_sum - discount
  12. if total_sum > budget:
  13.     print(f"Not enough money!")
  14.     print(f"Wingard needs {total_sum - budget:.2f} leva more.")
  15. else:
  16.     print("Action!")
  17.     print(f"Wingard starts filming with {budget - total_sum:.2f} leva left.")
Add Comment
Please, Sign In to add comment