Computer Science Grade 11 Cbse -

Outside, the summer sun blazed. Inside the computer lab, two students sat in the fading glow of CRT monitors, talking about stacks and queues and why break statements shouldn’t be overused.

def borrow_book(self, book_id, member_id): for book in self.books: if book.book_id == book_id and book.is_available: book.is_available = False transaction = Transaction(book_id, member_id) transaction.due_date = datetime.now() # Bug here self.transactions.append(transaction) return True return False Then he saw it. He had imported datetime but was using datetime.now() instead of datetime.datetime.now() + timedelta(days=7) . computer science grade 11 cbse

And maybe he would. But first, he had to pass 11th grade. Outside, the summer sun blazed