Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- excursion_price = float(input())
- puzzle_count = int(input())
- talking_doll_count = int(input())
- plushy_bear_count = int(input())
- minion_count = int(input())
- truck_count = int(input())
- puzzle = 2.60
- talking_doll = 3
- plushy_bear = 4.10
- minion = 8.20
- truck = 2
- total_price_after_discount = 0
- rent = 0.9
- total_toy_count = puzzle_count + talking_doll_count + plushy_bear_count + minion_count + truck_count
- total_price = (puzzle_count * puzzle) + (talking_doll * talking_doll_count) + (plushy_bear * plushy_bear_count) + \
- (minion * minion_count) + (truck * truck_count)
- if total_toy_count >= 50:
- total_price_after_discount = total_price - (total_price/4)
- else:
- total_price_after_discount = total_price
- if excursion_price > total_price_after_discount*rent:
- print(f'Not enough money! {excursion_price - total_price_after_discount * rent:.2f} lv needed.')
- else:
- print(f'Yes! {total_price_after_discount * rent - excursion_price:.2f} lv left.')
Advertisement
Add Comment
Please, Sign In to add comment