Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- budget = int(input())
- season = input()
- amount_of_fishermen = int(input())
- rent_price = 0
- if season == 'Spring':
- rent_price = 3000
- elif season == 'Summer' or season == 'Autumn':
- rent_price = 4200
- elif season == 'Winter':
- rent_price = 2600
- if amount_of_fishermen <= 6:
- rent_price -= rent_price * 0.1
- elif 7 <= amount_of_fishermen <= 11:
- rent_price -= rent_price * 0.15
- elif 12 <= amount_of_fishermen:
- rent_price -= rent_price * 0.25
- if amount_of_fishermen % 2 == 0 and season != 'Autumn':
- rent_price *= 0.95
- leftover_money = rent_price - budget
- if budget < rent_price:
- print(f'Not enough money! You need {abs(leftover_money):.2f} leva.')
- else:
- print(f'Yes! You have {abs(leftover_money):.2f} leva left.')
Add Comment
Please, Sign In to add comment