Course Content

Python Mini Project #1 | Python Tutorials For Absolute Beginners In Hindi #71

As we have nearly completed our Python object-oriented programming concepts, now it is time to do a mini-project.

Statement:-

The task is to create an “Online Library Management System”. For this, you have to create a library class which includes the following methods:

  • Displaybook() : To display the available books
  • Lendbook(): To lend a book to a user
  • Addbook(): To add a book in the library
  • Returnbook(): To return the book in the library.

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.

Optional:-

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.

 

Code as described/written in the video


# 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

Comments(1)

king123 2 months ago
Harry sir please send the source code becausse i am not able to make this miniproj 1.
Please help me sir.

Resources

No downloadable resources for this video. If you think you need anything, please post it in the QnA!

Course Announcements

Any Course related announcements will be posted here