American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

5:00 PM – Python Object Oriented Programming – Sebastian

May 9, 2023 @ 5:00 pm - 6:00 pm

Today We Did
  1. Created “list_all_students” and “list_all_teachers” methods which loop through our attributes self.students and self.teachers which are lists, and print out information about the objects being stored in those lists.
  2. Created application_loop() method which will handle the main functionality of our program.
  3. In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
  1. Name your homework MAY9_school_system_hw, please submit by next Monday.
  2. Homework: Please implement the following methods:

    a) create method: list_all_teachers() which will be exactly like the list_all_students() method, but list the teachers in a similar format.

    b) create methods: list_all_students_using_dict() and list_all_teachers_using_dict() which will be exactly like the list_all_students() method, but should loop over our attributes self.student_dictionary and self.teacher_dictionary. Remember you can use the .keys(), .values(), and .items() methods for dictionaries now. Which one should you use in order to get the correct data to loop over? (hint: do we want the dictionary’s keys or values?)

Details

Date:
May 9, 2023
Time:
5:00 pm - 6:00 pm
Event Categories:
,
Verified by MonsterInsights