🎓 Student Explorer · Mission 4 of 13
🏛️ One Department
Each head of department wants their own list. Ask which department, and list just those students.
Your mission
- Ask "Which department?" and keep the answer in dept.
- Make found = [ ].
- Go through students. When s.dept == dept, add s.name to found.
- Tell length(found) + " students in " + dept.
Getting the mission ready…