Today we Did
- reviewed the parts of an application
- reviewed how
Homework:
Step 1: Open up a new file called teacher.py and create a teacher object
- It should be the same as a student object, but instead of a grade, it should be a subject class variable
Step 2: import your teacher into your “main” look at your import for examples
- remember from <name_of_file> import <name_of_class>
Step 3: Everything we did in class to day concerning dictionarys and students, you will do to teachers
- Add a self.teacher_dict to your __init__
- Add three options (find_teacher, add_teacher, list_all_teachers) to your menu and application loop
- Implement the following three methods
- find_teacher, which searches a dictionary by name to find a teacher
- add_teacher: acts exactly like add_student, but with dictionaries
- list_all_teachers: prints all teachers