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