Advertisement
GeorgiLukanov87

godzilavskong100/100

Mar 11th, 2022
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. Godzila vs Kong
  2. ********************
  3.  
  4. budget = float(input())
  5. actors = int(input())
  6. price_dress = float(input())
  7.  
  8. decor = 0.10*budget
  9.  
  10. if actors >= 150:
  11.     price_dress = price_dress - (0.10*price_dress)
  12.  
  13. sum_dress = actors*price_dress
  14. total_budget = decor+sum_dress
  15.  
  16. final_sum = '%.2f' % (abs(budget-total_budget))
  17.  
  18.  
  19. if budget >= total_budget:
  20.     print("Action!")
  21.     print("Wingard starts filming with " + str(final_sum) + " leva left.")
  22. else:
  23.     print("Not enough money!")
  24.     print('Wingard needs ' + str(final_sum) + ' leva more.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement