Library Book Loan Tracker

Medium Applied OOP Mini Projects
Solve in Playground →

Problem Statement

Create `Book` (id, title, available:bool) and `Library` (add, borrow_book, return_book). Process commands (BORROW id / RETURN id) and print final available count for a target book id.

Input Format

Line 1: N books (id title). Line 2: M commands. Last line: query id.

Output Format

Print True or False for availability of query id.

Constraints

1 <= N, M <= 20

Sample Input

2
101 Python
102 C
2
BORROW 101
RETURN 101
101

Sample Output

True

Explanation

Book 101 borrowed then returned becomes available (True).

Starter Code

class Book:
    pass

class Library:
    pass

if __name__ == '__main__':
    # Implement I/O logic here
    pass

Limits

  • Time Limit: 1s
  • Memory Limit: 256MB

Embedded C Programming

Updated: March 15, 2026
Intermediate

Embedded systems rely on efficient low-level programming to interact directly with hardware. In this course, you will learn how to write practical Embedded C programs used in real microcontroller-based systems. Rather than focusing only on theory, this course follows a practice-driven approach. Each lesson includes hands-on coding exercises that simulate real firmware development tasks used