Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Identify Consistent Performers | Tracking Athlete Performance
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python for Coaches

bookChallenge: 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.

Tarefa

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 True values in the attendance list.
  • 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.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 5
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

Suggested prompts:

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?

close

bookChallenge: Identify Consistent Performers

Deslize para mostrar o menu

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.

Tarefa

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 True values in the attendance list.
  • 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.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 5
single

single

some-alt