Challenge: Plot Team Attendance
Visualizing attendance helps coaches quickly identify participation trends across the team. By creating a bar chart of team attendance, you can immediately spot which athletes are consistently present and who may need additional support or encouragement. This approach transforms raw attendance data into an accessible visual summary, making it easier to communicate and act on participation insights.
Swipe to start coding
Write a function that takes a list of athlete attendance records and plots a bar chart showing the total number of sessions attended by each athlete.
- Each record in the list contains a
"name"and an"attendance"list. - The
"attendance"list contains boolean values, whereTrueindicates presence at a session. - The function must count the number of
Truevalues for each athlete. - The x-axis of the bar chart must show athlete names.
- The y-axis must show the total sessions attended for each athlete.
- The function must display the bar chart.
Løsning
Takk for tilbakemeldingene dine!
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Fantastisk!
Completion rate forbedret til 4.76
Challenge: Plot Team Attendance
Sveip for å vise menyen
Visualizing attendance helps coaches quickly identify participation trends across the team. By creating a bar chart of team attendance, you can immediately spot which athletes are consistently present and who may need additional support or encouragement. This approach transforms raw attendance data into an accessible visual summary, making it easier to communicate and act on participation insights.
Swipe to start coding
Write a function that takes a list of athlete attendance records and plots a bar chart showing the total number of sessions attended by each athlete.
- Each record in the list contains a
"name"and an"attendance"list. - The
"attendance"list contains boolean values, whereTrueindicates presence at a session. - The function must count the number of
Truevalues for each athlete. - The x-axis of the bar chart must show athlete names.
- The y-axis must show the total sessions attended for each athlete.
- The function must display the bar chart.
Løsning
Takk for tilbakemeldingene dine!
single