Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- budget = float(input())
- while budget>= 0:
- command = input()
- if command == 'ACTION':
- break
- if len(command) <= 15:
- command = float(input())
- budget -= command
- else:
- budget -= budget * 0.20
- 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