Advertisement
Merucial

Untitled

Feb 21st, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.56 KB | None | 0 0
  1. budget = float(input())
  2. num_scenarios = int(input())
  3. price_of_clothes = float(input()) # for one man
  4.  
  5. decor = 0.1 * budget
  6. total_clothing_price = num_scenarios * price_of_clothes
  7.  
  8. if num_scenarios > 150:
  9.      total_clothing_price = total_clothing_price * 0.9
  10.  
  11. total_expenses = decor + total_clothing_price
  12.  
  13. if total_expenses <= budget:
  14.      print('Action!')
  15.      print(f'Wingard starts filming with {(budget - total_expenses):.2f} leva left.')
  16. else:
  17.      print('Not enough money!')
  18.      print(f'Wingard needs {(total_expenses - budget):.2f} leva more.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement