Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- budget = int(input())
- season = input()
- fishermen = int(input())
- seasons = ["Spring", "Summer", "Autum", "Winter"]
- prices = [3000, 4200, 4200, 2600]
- index = seasons.index(season)
- rent = 0
- if season in seasons:
- rent = prices[index]
- if fishermen <=6:
- rent *=0.9
- elif 7 <= fishermen <=11:
- rent *= 0.85
- elif fishermen >= 12:
- rent *=0.75
- if fishermen % 2 == 0 and season != "Autum":
- rent *= 0.95
- print(f"Yes! You have {(budget - rent):.2f} leva left" if budget >= rent else f"Not enough money! You need {(rent - budget):.2f} leva.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement