Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bugget = float(input())
- decor = bugget * 0.1
- num_extra = int(input())
- price_of_dress = float(input())
- price_of_all_dress = num_extra * price_of_dress
- if num_extra > 150:
- price_of_all_dress *= 0.9
- all_sum = decor + price_of_all_dress
- difference = abs(bugget - all_sum)
- if all_sum > bugget:
- print("Not enough money!")
- print(f"Wingard needs {difference:.2f} leva more.")
- else:
- print("Action!")
- print(f"Wingard starts filming with {difference:.2f} leva left.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement