- This event has passed.
3 PM – Python OOP – Allison
July 16, 2025 @ 3:00 pm - 4:00 pm
What We Did Today
- Reviewed and finished SchoolSystem project
Homework
- Yanbao:
- Make sure to review the SchoolSystem July16_main.py code, understand it, and update your code
- Everyone:
- Make sure to do the below code in your LibrarySystem project
- When you’re done with the homework, create a folder called July16_LibrarySystem in your Google Drive. Upload main.py and book.py there.
- Create book.py file.
- Create a book class. It should have 4 attributes: title, author, publish_year, and id
- In your main.py file:
- Replace self.menu = “””Empty Menu””” with:
- 1. Add book
2. List all books
3. Find book by name
4. Find book by id
5. List all old books
Enter your selection. Enter ‘quit’ to exit:
- 1. Add book
- Create an empty dictionary called book_dictionary
- Implement option 1, option 2 (with dictionary), and option 3.
- Replace self.menu = “””Empty Menu””” with:
- Other
- Add any missing parts of your class notes from our class notes (see link at bottom)
- Review the homework answers (see link at bottom)
Notes
- You can reach out via allison@ayclogic.com if you have any questions.
- Class notes and previous homework answers can be found here: Link to Google Drive