Professional Documents
Culture Documents
Class Library:
Self.book_name = book_name
Self.author = author
Self.pages = pages
Self.price = price
Def __str__(self):
# Driver Code
If __name__ == “__main__”:
Lib = []
# Keep the track of the number of
Count = 0
While True:
“3. List all books of given author\n4. List the count of books in the library\n5. Exit\n”)
If input_choice == ‘1’:
Count += 1
Print(book)
If book.author == ar_nm:
Print(book)
Exit(0)