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