Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Identify Consistent Performers | Tracking Athlete Performance
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.

Aufgabe

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.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 5
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

close

bookChallenge: Identify Consistent Performers

Swipe um das Menü anzuzeigen

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.

Aufgabe

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.

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 1. Kapitel 5
single

single

some-alt