Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- budget_for_the_movie = float(input())
- statist = int(input())
- price_for_clothes_for_one_statist = float(input())
- decor = budget_for_the_movie * 0.1
- sum_for_clothes_for_one_statist = price_for_clothes_for_one_statist * statist
- discount = budget_for_the_movie * 0.1
- if sum_for_clothes_for_one_statist > 150:
- if sum_for_clothes_for_one_statist + decor - discount > budget_for_the_movie:
- need_money = (sum_for_clothes_for_one_statist + decor) - budget_for_the_movie
- print("Not enough money!")
- print(f"Wingard needs {need_money:.2f} leva more.")
- elif sum_for_clothes_for_one_statist + decor - discount <= budget_for_the_movie:
- money_left = budget_for_the_movie - (sum_for_clothes_for_one_statist + decor)
- print("Action!")
- print(f"Wingard starts filming with {money_left:.2f} leva left.")
- elif sum_for_clothes_for_one_statist + decor > budget_for_the_movie:
- need_money = (sum_for_clothes_for_one_statist + decor) - budget_for_the_movie
- print("Not enough mony!")
- print(f"Wingard needs {need_money:.2f} leva more.")
- elif sum_for_clothes_for_one_statist + decor <= budget_for_the_movie:
- money_left = budget_for_the_movie - (sum_for_clothes_for_one_statist + decor)
- print("Action!")
- print(f"Wingard starts filming with {money_left:.2f} leva left.")
Advertisement
Add Comment
Please, Sign In to add comment