Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- budget = float(input())
- while budget >= 0:
- actor = input()
- if actor == "ACTION":
- break
- if len(actor) <= 15:
- salary = float(input())
- budget -= salary
- else:
- budget *= 0.8
- if budget < 0:
- print(f"We need {abs(budget):.2f} leva for our actors.")
- else:
- print(f"We are left with {budget:.2f} leva.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement