Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- season = input() # Сезонът – текст - “Winter”, “Spring” или “Summer”;
- group_type = input() # Видът на групата – текст - “boys”, “girls” или “mixed”;
- student_number = int(input()) # Брой на учениците – цяло число в интервала [1 … 10000];
- nights_number = int(input()) # Брой на нощувките – цяло число в интервала [1 … 100].
- discount = 1
- sports = ""
- night_price = 0
- if season == "Winter":
- if group_type == "boys":
- night_price = 9.60
- sports = "Judo"
- elif group_type == "girls":
- night_price = 9.60
- sports = "Gymnastics"
- elif group_type == "mixed":
- night_price = 10
- sports = "Ski"
- else:
- print('error')
- elif season == "Spring":
- if group_type == "boys":
- night_price = 7.20
- sports = "Tennis"
- elif group_type == "girls":
- night_price = 7.20
- sports = "Athletics"
- elif group_type == "mixed":
- night_price = 9.5
- sports = "Cycling"
- else:
- print('error')
- elif season == "Summer":
- if group_type == "boys":
- night_price = 15
- sports = "Football"
- elif group_type == "girls":
- night_price = 15
- sports = "Volleyball"
- elif group_type == "mixed":
- night_price = 20
- sports = "Swimming"
- else:
- print('error')
- else:
- print('error')
- if 10 <= student_number < 20:
- discount = 0.95
- elif 20 <= student_number < 50:
- discount = 0.85
- elif student_number > 50:
- discount = 0.5
- price = (student_number * nights_number) * night_price
- price_discount = price * discount
- print(f"{sports} {price_discount:.2f} lv.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement