A simple and beginner-friendly Library Management System built using Python.
This is a menu-driven terminal application that helps manage books in a library.
This project allows users to:
- Add books to the library
- View all available books
- Search for a book using Book ID
- Delete a book from the system
All data is stored using Python dictionaries during runtime.
- β Add new books with ID, name, author, and quantity
- π View all books in the library
- π Search books by Book ID
- β Delete books from the library
- π§Ύ Menu-driven and easy to use
- Python (Core Python)
- Dictionaries
- Functions
- Loops
- Conditional Statements
- Exception Handling
library_management.py: Main Python file containing the Library Management System code
- Make sure Python is installed on your system
- Download or clone this repository
- Open terminal / command prompt
- Run the file using:
python library_management.py```-----MENU---- 1.Add Books 2.View Books 3.Search Book by ID 4.Delete a Book 5.Exit Enter your choice: 1 Enter book id: 101 Enter book name: Python Basics Enter author name: John Doe Enter quantity: 5 Do you want to add another book? no
-----MENU---- 1.Add Books 2.View Books 3.Search Book by ID 4.Delete a Book 5.Exit Enter your choice: 2
Book ID: 101 Name: Python Basics Author: John Doe Quantity: 5
-----MENU---- 1.Add Books 2.View Books 3.Search Book by ID 4.Delete a Book 5.Exit Enter your choice: 3 Enter the ID of the book you want to search: 101 Name: Python Basics Author: John Doe Quantity: 5
-----MENU---- 1.Add Books 2.View Books 3.Search Book by ID 4.Delete a Book 5.Exit Enter your choice: 4 Enter the ID of the book you want to delete: 101 The book has been Deleted No books added```