Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- price_of_holiday = float(input())
- amount_puzzles = int(input())
- amount_talking_dolls = int(input())
- amount_plush_bears = int(input())
- amount_minions = int(input())
- amount_truckies = int(input())
- discount = 0
- price_of_puzzle = 2.60
- price_of_talking_doll = 3
- price_of_plush_bear = 4.10
- price_of_minion = 8.20
- price_of_trucky = 2
- sum = amount_puzzles * price_of_puzzle + amount_talking_dolls * price_of_talking_doll + amount_plush_bears * price_of_plush_bear + amount_minions * price_of_minion + amount_truckies * price_of_trucky
- total_amount_of_toys = amount_puzzles + amount_talking_dolls + amount_plush_bears + amount_minions + amount_truckies
- if total_amount_of_toys >= 50:
- discount = sum * 0.25
- elif total_amount_of_toys < 50:
- sum = sum
- final_sum = sum - discount
- profit = final_sum * 0.9
- if profit >= price_of_holiday:
- print(f'Yes! {profit - price_of_holiday:.2f} lv left.')
- elif profit < price_of_holiday:
- print(f'Not enough money! {price_of_holiday - profit:.2f} lv needed.')
Advertisement
Add Comment
Please, Sign In to add comment