« All Events
6:30 PM – Python OOP – Sebastian
May 8 @ 6:30 pm - 7:30 pm
Today we did
- Start school system
- Create add_student()
- Create list_students()
- AYC Logic’s observed holidays: https://www.ayclogic.com/observed-holidays/
- In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
- I just realized I haven’t set up the Google Drive yet, sorry, we will go over homework next class and I will create/add you to the new folders
- Homework: Create a new file called MAY8_hw.py
- Create a new teacher object with attributes: name, age, subject
- Create attributes
- self.teacher_dictionary, self.teacher_list, exactly like the other student attributes
- You can add some sample objects if you want the same way we did for students, but up to you
- Create functions:
- add_teacher(), should look exactly like add_student() but asks for subject instead of grade
- list_teachers(), should look exactly like list_students() but loops over teacher list instead