Library Management System
> book B1 Python Crash Course | Eric Matthes | 2019
Added book B1: Python Crash Course by Eric Matthes (2019)
> book B2 Clean Code | Robert C. Martin | 2008
Added book B2: Clean Code by Robert C. Martin (2008)
> book B3 Fluent Python | Luciano Ramalho | 2022
Added book B3: Fluent Python by Luciano Ramalho (2022)
> book B4 The Pragmatic Programmer | Hunt and Thomas | 1999
Added book B4: The Pragmatic Programmer by Hunt and Thomas (1999)
> book B5 Automate the Boring Stuff | Al Sweigart | 2019
Added book B5: Automate the Boring Stuff by Al Sweigart (2019)
> book B1 Duplicate | Nobody | 2000
Error: book id B1 already exists
> book B6 No Year | Someone
Error: format: book <id> <title> | <author> | <year>
> member M1 Asha
Added member M1: Asha
> member M2 Ravi
Added member M2: Ravi
> borrow M1 B1 2026-11-01
Asha borrowed 'Python Crash Course', due 15 Nov 2026
> borrow M1 B2 2026-11-01
Asha borrowed 'Clean Code', due 15 Nov 2026
> borrow M2 B1 2026-11-02
Error: 'Python Crash Course' is already borrowed (due 15 Nov)
> borrow M1 B3 2026-11-03
Asha borrowed 'Fluent Python', due 17 Nov 2026
> borrow M1 B4 2026-11-03
Error: Asha already has 3 books
> borrow M3 B4 2026-11-03
Error: no member with id M3
> search python
  B1   Python Crash Course             Eric Matthes        on loan to Asha
  B3   Fluent Python                   Luciano Ramalho     on loan to Asha
> overdue 2026-11-20
  Python Crash Course             Asha      5 days late, fine so far Rs 25
  Clean Code                      Asha      5 days late, fine so far Rs 25
  Fluent Python                   Asha      3 days late, fine so far Rs 15
> return B1 2026-11-25
Asha returned 'Python Crash Course', 10 day(s) late: fine Rs 50
> return B2 2026-11-10
Asha returned 'Clean Code', on time
> return B5 2026-11-10
Error: 'Automate the Boring Stuff' is not on loan
> borrow M2 B1 2026-11-26
Ravi borrowed 'Python Crash Course', due 10 Dec 2026
> return B3 2026-12-20
Asha returned 'Fluent Python', 33 day(s) late: fine Rs 165
> members
  M1   Asha      books: 0  fines: Rs 215
  M2   Ravi      books: 1  fines: Rs 0
> borrow M1 B5 2026-12-21
Error: Asha owes Rs 215; pay fines above Rs 100 first
> pay M1 80
Asha paid Rs 80; still owes Rs 135
> borrow M1 B5 2026-12-21
Error: Asha owes Rs 135; pay fines above Rs 100 first
> books
  B1   Python Crash Course             out
  B2   Clean Code                      in
  B3   Fluent Python                   in
  B4   The Pragmatic Programmer        in
  B5   Automate the Boring Stuff       in
> quit
5 books (1 on loan), 2 members, fines due Rs 135.
