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