Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- season = input()
- group_type = input()
- students_number = int(input())
- nights = int(input())
- sport = ""
- price_per_student = 0
- if season == "Winter":
- if group_type == "boys" or group_type == "girls":
- price_per_student = 9.6
- if group_type == "boys":
- sport = "Judo"
- elif group_type == "girls":
- sport = "Gymnastics"
- elif group_type == "mixed":
- price_per_student = 10
- sport = "Ski"
- elif season == "Spring":
- if group_type == "boys" or group_type == "girls":
- price_per_student = 7.2
- if group_type == "boys":
- sport = "Tennis"
- elif group_type == "girls":
- sport = "Athletics"
- elif group_type == "mixed":
- price_per_student = 9.5
- sport = "Cycling"
- elif season == "Summer":
- if group_type == "boys" or group_type == "girls":
- price_per_student = 15
- if group_type == "boys":
- sport = "Football"
- elif group_type == "girls":
- sport = "Volleyball"
- elif group_type == "mixed":
- price_per_student = 20
- sport = "Swimming"
- total_price = price_per_student * students_number * nights
- if students_number >= 50:
- total_price *= 0.5
- elif 20 <= students_number:
- total_price *= 0.85
- elif 10 <= students_number:
- total_price *= 0.95
- print(f"{sport} {total_price:.2f} lv.")
Advertisement
Add Comment
Please, Sign In to add comment