American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

7:00 PM – Python OOP – Joshua

September 23 @ 7:00 pm - 8:00 pm

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

Details

Date:
September 23
Time:
7:00 pm - 8:00 pm