Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- people = int(input())
- season = input()
- if season == "spring":
- if people <= 5:
- price = people * 50
- else:
- price = people * 48
- elif season == "summer":
- if people <= 5:
- price = people * 48.5 * 0.85
- else:
- price = people * 45 * 0.85
- elif season == "autumn":
- if people <= 5:
- price = people * 60
- else:
- price = people * 49.5
- else:
- if people <= 5:
- price = people * 86 * 1.08
- else:
- price = people * 85 * 1.08
- print(f"{price:.2f} leva.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement