Silence.
“Don’t thank me. Thank the syllabus. CBSE actually designed this well. OOP, SQL, stacks, queues—this isn’t random. It’s how real systems are built.”
Aarav shrugged. “I don’t get it. The logic. All this self , __init__ , classes… why not just write everything in one straight line?”
Rohan sat back down. “Remember the first program we wrote? The one to find prime numbers?”
“A library has issued a book to a member. Write a Python function to calculate the fine if the book is returned after 15 days, where fine is ₹5 per day for the first 5 days and ₹8 per day thereafter.”
Rohan’s logic was solid. He had defined classes: Book , Member , Library . Methods for borrow_book() , return_book() , display_available() . But somewhere, a bug lurked. When a member borrowed a book, the availability status updated correctly, but the due date kept resetting to the current date instead of current_date + 7 .
“You okay?” Rohan asked.
Ms. D’Souza collected the submissions. “Before you leave—your theory exam is in three days. Cover Boolean algebra, SQL queries, and networking fundamentals. Any last-minute doubts?”