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