This project is a Library Management System built using Object-Oriented Programming (OOP) in Python within a Jupyter Notebook. It simulates a simple system where users can view available books, borrow a book, or return a book β all using class-based structure and interactive console inputs.
To demonstrate core OOP concepts in Python through a real-world example: managing a basic library.
- β Classes and Objects
- β Encapsulation
- β Instance Methods
- β
Constructors (
__init__
) - β Interaction Between Classes
- Python 3.x
- Jupyter Notebook
- View available books in the library
- Borrow a book (if available)
- Return a borrowed book
- Interactive text-based interface
- Easy to expand (e.g., track users or due dates)
The system includes two main classes:
Library
β handles book storage, borrowing, and returningStudent
β handles user interaction and requests
Welcome to the Library!
Choose an option:
1. List all available books
2. Request a book
3. Return a book
4. Exit the library
Enter your choice: 1
Books currently available: ['Python', 'Data Science', 'Machine Learning']