Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 450 Bytes

README.md

File metadata and controls

7 lines (6 loc) · 450 Bytes

book-exercise

Python exercise

Instructions: Create a book class. Initialise each book object with author, title, ISBN, publication year,number of pages. Define str method which displays information about the book. Define search method which searches by book or by author, through a dictionary attribute of the class which tracks the book objects created. Define two subclasses for different genres of books which override the default str method.