American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

6pm Python OOP – Joshua Widjanarko

May 29 @ 6:00 pm - 7:00 pm

Today we did

  • Explored how we can update classes to add functionality
  • Used that functionality to add allergy considerations to our code

Homework

In the main.py file, lets set up our project

create a class called SchoolSystem:

  1. In our __init__ method, there should be no paramaters for now
  2. There needs to be a variety of self.______ including
    1. the menu for our function (as a string)
    2. 4 lists: a student_list,teacher_list,class_list, and a staff_list
    3. 4 dictionaries: a  student_dict,teacher_dict,class_dict, and a staff_dict
    4. the names should be the same as above (ex. self.menu, self.student_list)
  3. The menu has the following options
    1. 1. Add Student
      2. List all students list
      3. Find student
      4. Add new teacher
      5. List all teachers
      6. Find a teacher
      7. List all teachers dictionaries
      8. List all students dictionaries
      9. Add staff
      10. List all staffs using List
      11. List all staffs that is younger than 20
      12. Find staff by name using List
      13. Find staff using Dictionary.
      14. Add a classroom
      15. List all classroom

Details

Date:
May 29
Time:
6:00 pm - 7:00 pm
Verified by MonsterInsights