As we have nearly completed our Python object-oriented programming concepts, now it is time to do a mini-project.
The task is to create an “Online Library Management System”. For this, you have to create a library class which includes the following methods:
As you have created a library class, now you will create an object and pass the following parameters in the constructor.
HarryLibrary=Library(listofbooks, library_name)
After that, create a main function and run an infinite while loop which asks the users for their input that whether they want to display, lend, add or return a book.
Maintain a dictionary for the users who own a book. Dictionary should take book name as a key and name of the person as a value. Whenever you lend a book to a user, you should maintain a dictionary.
# Create a library class
# display book
# lend book - (who owns the book if not present)
# add book
# return book
# HarryLibrary = Library(listofbooks, library_name)
#dictionary (books-nameofperson)
# create a main function and run an infinite while loop asking
# users for their input
No downloadable resources for this video. If you think you need anything, please post it in the QnA!
Any Course related announcements will be posted here