Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- trip_price = float(input())
- puzzles = int(input())
- talking_dolls = int(input())
- teddy_bears = int(input())
- minions = int(input())
- trucks = int(input())
- puzzle_price = 2.60
- talking_dolls_price = 3
- teddy_bear_price = 4.10
- minions_price = 8.20
- truck_price = 2
- discount = 0.25
- puzzles_sum = puzzles * puzzle_price
- talking_dolls_sum = talking_dolls * talking_dolls_price
- teddy_bears_sum = teddy_bears*teddy_bear_price
- minions_sum = minions * minions_price
- trucks_sum = trucks * truck_price
- order = puzzles_sum + talking_dolls_sum + teddy_bears_sum + minions_sum + trucks_sum
- toys_at_all = puzzles + talking_dolls + teddy_bears + minions + trucks
- #order = puzzles * puzzle_price + talking_dolls * talking_dolls_price \
- # + teddy_bears * teddy_bear_price + minions * minions_price \
- # + trucks * truck_price
- if toys_at_all >= 50:
- order = order * 0.75
- rent = 0.10 * order
- total = order - rent
- if trip_price < total:
- print(f"Yes! {total - trip_price:.2f} lv left.")
- else:
- print(f"Not enough money! {trip_price - total:.2f} lv needed.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement