Skip to content

kristinaups/book-exercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages