Last active
June 28, 2019 14:15
-
-
Save elliotdavies/ec9ecf906c8448527510e1db1e6b4f0e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# School years | |
You're helping your school design a new admin system. You've been given a list of students' names along with their school year. The data looks like so: | |
Name | Year | |
--------|----- | |
Amy | 1 | |
Bob | 3 | |
Charlie | 2 | |
David | 1 | |
Eric | 1 | |
Frances | 2 | |
Georgie | 5 | |
- Write a function that lists all the students in a given year | |
- Write a function that, given a student, returns their year |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment