- This event has passed.
5:00 PM – Python Object Oriented Programming – Shawn
June 23, 2023 @ 5:00 pm - 6:00 pm
Today We Did
- Reviewed and finished SchoolSystem
Homework
- Modify the code we wrote in class with the following instructions: https://drive.google.com/drive/folders/1Gy-hd4QHOnQKmmT_lL164JMiWypBBbv8
- Create find book by ID
- Create a new attribute: a dictionary named
id_to_book
- In the
add_book()
method, also add the book to theid_to_book
dictionary - Create a method
find_book_by_id
— this is going to look exactly likefind_book_by_name
, but with theid_to_book
dictionary instead ofbook_dictionary
- Create a new attribute: a dictionary named
- Create list all old books
- Go through the dictionary values. If the book was written before 2000, print it out. Otherwise, don’t print anything out.
Feel free to let me know if I have any questions — reach me at szhuang@ayclogic.com.