Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Find Most Improved Athlete | Team Performance Analysis
Python for Coaches
Seção 2. Capítulo 3
single

single

bookChallenge: Find Most Improved Athlete

Deslize para mostrar o menu

Coaches often want to recognize athletes who show the most progress. Automate the process of finding the most improved athlete.

Tarefa

Swipe to start coding

Write a function that takes a list of athlete records, where each record contains a name, a list of first_half scores, and a list of second_half scores. The function should return the name of the athlete with the largest increase in average score from the first half to the second half.

  • Calculate the average score for first_half and second_half for each athlete.
  • Determine the difference between the second half and first half averages.
  • Identify which athlete has the greatest positive difference.
  • Return the name of that athlete.

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 2. Capítulo 3
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

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

some-alt