Mini-Project: The Community Data Toolkit

Build a reusable toolkit of five functions that all operate on a list of member records (name, age, city, volunteer_hours): (1) count_members(members) returns the total, (2) total_hours(members) returns the summed volunteer hours, (3) average_hours(members) returns the average by CALLING total_hours and count_members, (4) find_top_volunteer(members) loops and returns the name with the most hours, (5) members_from(members, city) returns a filtered list. Every one must RETURN, not print. Then call all five on a dataset of six members and print the results. Both languages.

SANKOFA SANDBOX
loading editor…
Your turn → Work through it step by step. This is a piece of the course project, not a throwaway exercise.

Built it in both languages?

Mark it done once your Python and JavaScript versions both run correctly. Honesty here is what makes the dashboard useful to you.

← BackNext: Module 16: Scope and Lifetime →