« All Events
10 AM – Python OOP – Indo – Gamas
November 11, 2023 @ 10:00 am - 11:00 am
Today We Did
- We created sat_9_am_school_system pycharm project
- We added add teacher, list all teachers.
- We added Student.get_info()
- We added default teachers list for testing purposes.
Homework
- Inside teacher.py, add get_info(self) method. This is very similar to Student.get_info() and use this Teacher.get_info() inside the main.py list_all_teachers() method.
- Also inside main.py, add add_default_students() this is similar to add_default_teachers().
- Add “3. Find Student” feature. It should behave like this
Please select one of the following
1. Add Student
2. List all students
3. Find student
4. Add Teacher
5. List all teachers
Enter your selection (Enter "exit" to quit): 2
LIST ALL STUDENTS
Joshua - 6 years old and grade 12
Russell - 6 years old and grade 11
Please select one of the following
1. Add Student
2. List all students
3. Find student
4. Add Teacher
5. List all teachers
Enter your selection (Enter "exit" to quit): 3
FIND STUDENT
Enter student name: Joshua
Joshua - 6 years old and grade 12
Please select one of the following
1. Add Student
2. List all students
3. Find student
4. Add Teacher
5. List all teachers
Enter your selection (Enter "exit" to quit): 3
FIND STUDENT
Enter student name: Gamas
We do not have 'Gamas' in our system.
Please select one of the following
1. Add Student
2. List all students
3. Find student
4. Add Teacher
5. List all teachers
Enter your selection (Enter "exit" to quit):