Mini Project

Library Management System

Library Management System

Build a full OOP-based library system with Book, Member, and Library classes. Support book issuance with validation (max limit per member type, duplicate issue prevention), returns, availability checks, genre filtering, and a transaction log. Demonstrate with 7 books and 3 members. Learn classes, encapsulation, method chaining, and complex state management.

EditorPython · JSX
PreviewUpdates on Run Tests
Loading preview…
Tests
Should define a Book class
Should define a Member class
Should define a Library class
Book should have is_issued initialized to False
Should use next() with generator to find books/members
Should use list comprehension to filter available books or remove from issued_books
Should use .append() to add items to lists
Should use 'in' to check if member has a book
Should use set comprehension to get unique genres
Should return 'self' for method chaining
Should have conditional validation in issue_book
Should use for loop to log operations or books