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