- This event has passed.
7 PM – Python OOP – Sebastian
January 24 @ 7:00 pm - 8:00 pm
Today We Did
- Add a classroom
- List all classrooms using a list
- List all classrooms using a dictionary
- Find classrooms using dictionary
- AYC Logic’s observed holidays: https://www.ayclogic.com/observed-holidays/
- In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
- Please submit your homework to the corresponding project’s folder in your Google Drive
- Homework: Finish our find_classroom_using_list() method
- Ask the user for a subject they want to find
- Look at each object inside our classroom_list attribute, and check if it has a subject attribute with the same value as what the user asked for
- If there is a match, then print out the classroom info and end the function (remember how we exit out of a function!).
- If we looked at every single classroom in our list, and none of them have a matching name, tell the user that the classroom doesn’t exist.