01Your project
Build a smarter library
- Inheritance and super()Initialize EBook with the parent constructor and store the file size.
- Method overridingCustomize display_info() so EBook prints its own information.
- Special method __str__()Return an EBook description using super().__str__().
- Composition and __len__()Add books to Library and make them countable.
- Find a bookImplement find_book() to return the matching object or None.
Expected output after completing all tasks:
OutputExpected
Book: Dune EBook: Python Basics Total books: 2 Python Basics by Alex Smith (4.5 MB)
