Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- budget = float(input()) * 0.9
- statists = int(input())
- dress = float(input())
- if statists > 150:
- dress *= 0.9
- budget -= statists * dress
- if budget < 0:
- print('Not enough money!')
- print(f'Wingard needs {abs(budget):.2f} leva more.')
- else:
- print('Action!')
- print(f'Wingard starts filming with {budget:.2f} leva left.')
- Pешение с тернарен оператор и \n:)
- budget = float(input()) * 0.9
- statists = int(input())
- dress = float(input())
- budget -= statists * (0.9 if statists > 150 else 1) * dress
- print(f'Not enough money! \nWingard needs {abs(budget):.2f} leva more.' if budget < 0
- else f'Action! \nWingard starts filming with {budget:.2f} leva left.')
Add Comment
Please, Sign In to add comment