Challenge: Identify Consistent Performers
Coaches often want to reward or recognize athletes with high attendance. Automating the identification of consistent performers helps ensure fair recognition and motivates athletes to maintain their commitment. In this challenge, you will work with attendance records to find out which athletes have attended at least 90% of their sessions.
Swipe to start coding
Write a function that takes a list of attendance records and returns a list of names for athletes with at least 90% attendance.
- Iterate over each record in
attendance_records. - For each record, calculate the percentage of
Truevalues in theattendancelist. - If the percentage is at least 90%, include the athlete's name in the result list.
- Return the list of names with at least 90% attendance.
Рішення
Дякуємо за ваш відгук!
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
How do I calculate the attendance percentage for each athlete?
Can you show me an example of the attendance data format?
What should I do if some attendance records are missing or incomplete?
Чудово!
Completion показник покращився до 4.76
Challenge: Identify Consistent Performers
Свайпніть щоб показати меню
Coaches often want to reward or recognize athletes with high attendance. Automating the identification of consistent performers helps ensure fair recognition and motivates athletes to maintain their commitment. In this challenge, you will work with attendance records to find out which athletes have attended at least 90% of their sessions.
Swipe to start coding
Write a function that takes a list of attendance records and returns a list of names for athletes with at least 90% attendance.
- Iterate over each record in
attendance_records. - For each record, calculate the percentage of
Truevalues in theattendancelist. - If the percentage is at least 90%, include the athlete's name in the result list.
- Return the list of names with at least 90% attendance.
Рішення
Дякуємо за ваш відгук!
single