Homework
Grade School
Write a small program that stores school enrolment information in a class called School
.
This is meant to practice classes, dictionaries & lists in Python. No actual database needed.
If no students have been added, the data should be empty:
When you add a student, they get added to the correct grade. For example, James Smith is in grade 2:
You can, of course, add several students to the same grade, and students to different grades.
Also, you can ask for all the students in a single grade:
Make sure it works with more than one school, and keeps the information separate:
Last updated
Was this helpful?