Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- budget = float(input())
- number_statist = int(input())
- price_dress = float(input())
- decor_price = budget * 0.1
- dresses_price = number_statist * price_dress
- if number_statist > 150:
- dresses_price *= 0.9
- needed_money = decor_price + dresses_price
- difference = abs(needed_money - budget)
- if needed_money > budget:
- 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.')
Add Comment
Please, Sign In to add comment