Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- budget = float(input())
- num_scenarios = int(input())
- price_of_clothes = float(input()) # for one man
- decor = 0.1 * budget
- total_clothing_price = num_scenarios * price_of_clothes
- if num_scenarios > 150:
- total_clothing_price = total_clothing_price * 0.9
- total_expenses = decor + total_clothing_price
- if total_expenses <= budget:
- print('Action!')
- print(f'Wingard starts filming with {(budget - total_expenses):.2f} leva left.')
- else:
- print('Not enough money!')
- print(f'Wingard needs {(total_expenses - budget):.2f} leva more.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement