Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- puzzle = 2.60
- talking_doll = 3.00
- plush_bear = 4.10
- minion = 8.20
- truck = 2
- trip = float(input())
- puzzle_quantity = int(input())
- talking_doll_quantity = int(input())
- plush_bear_quantity = int(input())
- minion_quantity = int(input())
- truck_quantity = int(input())
- total_quantity = puzzle_quantity + talking_doll_quantity \
- + plush_bear_quantity + minion_quantity \
- + truck_quantity
- profit = puzzle*puzzle_quantity + talking_doll*talking_doll_quantity \
- + plush_bear*plush_bear_quantity + minion*minion_quantity \
- + truck*truck_quantity
- if total_quantity >= 50:
- profit -= profit*0.25
- profit -= profit*0.10
- if profit < trip:
- diff = trip - profit
- print(f"Not enough money! {diff:.2f} lv needed.")
- else:
- diff = profit - trip
- print(f"Yes! {diff:.2f} lv left.")
Add Comment
Please, Sign In to add comment