Loading Events

« All Events

  • This event has passed.

7:00 PM – Python OOP – Joshua

November 20 @ 7:00 pm

Today We Did

– School Application

 

Homework

0.5: If you haven’t, finish your find_student_dict function (Option 5)

1.Create a new class called “Teacher” in a file called Teacher.py

– Attributes: Name, Age, Subject
2. For every option currently in our menu, create another option for Teachers. Your menu will look like below. When I run your code, each one of these options should work.

self.menu = """Welcome to the School Application!
1. Add Student 
2. List all students (List)
3. Find student (List)
4. List all students (dict)
5. Find student (dict)1. Add Student 
6. Add Teacher
7. List All Teachers (List)
8. Find Teacher (List)
9. List All Reachersstudent (dict)
10. Find Teacher (dict)

Exit. End the Application
Please Choose an option"""

FAQ:
1. Remember to import your Teacher class into your school application
2. Don’t forget to update your application loop to handle all your new options
3. You can refer to previously made functions

Details

  • Date: November 20
  • Time:
    7:00 pm