Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- budge = float(input())
- num_of_crew = int(input())
- price_costume = float(input())
- decor_price = budge * 0.1
- all_clothes = num_of_crew * price_costume
- if num_of_crew > 150:
- all_clothes = all_clothes * 0.90
- total_expenses = all_clothes + decor_price
- diff = abs(total_expenses - budge)
- if budge >= 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