Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Find Most Improved Athlete | Team Performance Analysis
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python for Coaches

bookChallenge: Find Most Improved Athlete

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

Aufgabe

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.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 3
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

Suggested prompts:

How can I define or measure "most improved" for the athletes?

Can you show me an example of the data I should use for this process?

What kind of output or report do you want after identifying the most improved athlete?

close

bookChallenge: Find Most Improved Athlete

Swipe um das Menü anzuzeigen

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

Aufgabe

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.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 3
single

single

some-alt