Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- budget = float(input())
- count_statists = int(input())
- price_clothing_statist = float(input())
- decor_price = budget * 0.10
- all_clothes_price = count_statists * price_clothing_statist
- if count_statists > 150:
- all_clothes_price = all_clothes_price * 0.90
- total_expenses = all_clothes_price + decor_price
- diff = abs(total_expenses - budget)
- if budget >= total_expenses:
- print("Action!")
- print(f"Wingard starts filming with {diff:.2f} leva left.")
- else:
- print("Not enough money!")
- print(f"Wingard needs {diff:.2f} leva more.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement