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