Today we did
- reviewed basics of python oop
- how to create a class
- how __init_works
- how to create a object of your class (like a specific dog with your dog class template)
- how to use functions in the class
- how to grab class variables
- houw to use class functions
Homework
Create a new project Library System
- create a src file and create two python files (main.py and book.py)
- The book class should have as class variables (both as self. and in () )
- title, author, publish_year, id
- The main class should have in the __init_ but not class variables (so should just be __init__self
- a dictionary called (book_dictionary)
- a dictionary called (books by id)
- a menu, which contains
- “””
Please look at below options
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: “””