Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TrailPrice = float(input())
- numPuzzles = float(input())
- numTalkingDolls = float(input())
- numBears = float(input())
- numMinions = float(input())
- numTrucks = float(input())
- pNumTrucks = 2.00
- pNumMinions = 8.20
- pNumBears = 4.10
- pNumPuzzles = 2.60
- pNumTalkingDolls = 3.00
- ALL = numTrucks + numBears + numPuzzles + numMinions + numTalkingDolls
- allWithPrices = (numTrucks * pNumTrucks + numBears * pNumBears + numPuzzles * pNumPuzzles + numMinions * pNumMinions
- + numTalkingDolls * pNumTalkingDolls) * 0.9
- if ALL >= 50:
- allWithPrices *= 0.75
- if allWithPrices >= TrailPrice:
- moneyLeft = allWithPrices - TrailPrice
- print("Yes! " + f'{moneyLeft:.2f}' + " lv left.")
- else:
- moneyNeeded = TrailPrice - allWithPrices
- print(f"Not enough money! " + f'{moneyNeeded:.2f}' + " lv needed.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement