Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buget = float(input())
- statist = int(input())
- cloths_price = float(input())
- decor = buget * 0.1
- sum_cloths = cloths_price * statist
- if statist > 150:
- discount = sum_cloths * 0.1
- cloths_sum = sum_cloths - discount
- total = cloths_sum + decor
- else:
- total = sum_cloths + decor
- if buget >= total:
- left = buget - total
- print('Action!')
- print(f'Wingard starts filming with {left:.2f} leva left.')
- else:
- left = total - buget
- print(f'Not enough money!')
- print(f"Wingard needs {left:.2f} leva more.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement