« All Events
7 PM – Python OOP
October 8, 2021 @ 7:00 pm - 8:00 pm
Today We Do
- We continued with School Application project, we extracted methods from add new student, list all students, add new teacher and list all teachers.
Homework
- Under student.py and teacher.py classes, create a new method get_info(self). when it is called, it will return
f"{self.name} - {self.age} years old - grade {self.grade}"
- Inside school_application.py, inside list_all_students(self) and list_all_teachers(self), change the code so it call this new method s.get_info(), capture the return value and print to the shell.
- Review Aug20_dictionary.py and Aug20.dictionaryHomework.py