- This event has passed.
5:00 PM – Python Object Oriented Programming – Sebastian
May 23, 2023 @ 5:00 pm - 6:00 pm
Today We Did
- Began library system
- Created Book class (remember, our “model” for the book object)
- Created add_book, list_all_books, and find_book_using_title
- In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
- Name your homework MAY23_library_system_hw, please submit by next Monday.
- Homework:
a) First we need to add books to our books_by_id dictionary in the same add_book() method. This will be a bit different from how we did it for the books_dictionary dictionary, it’s your job to try and find out the difference on how we should “add it”.
b) Similar to how we created find_book_using_title(), create a new method find_book_using_id() which will use our books_by_id dictionary attribute to find books after the user gives us a book ID.