Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- budget = float(input())
- statist = float(input())
- priceClothesStatist = float(input())
- priceDecor = (budget * 10) / 100
- priceClothes = statist * priceClothesStatist
- if statist >= 150:
- priceClothes = priceClothes - ((priceClothes * 10) / 100)
- summaryPrice = priceDecor + priceClothes
- moneyLeft = (budget - summaryPrice)
- # moneyLeft = abs(moneyLeft)
- if moneyLeft >= 0:
- print(f'Action!')
- print(f'Wingard starts filming with {abs(moneyLeft):.2f} leva left.')
- else:
- print(f'Not enough money!')
- print(f'Wingard needs {abs(moneyLeft):.2f} leva more.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement