Computer: Science Grade 11 Cbse

Three days later, in the exam hall, Rohan read the first question:

Somewhere in the back, Aarav wrote the same function—a little slower, but correctly. computer science grade 11 cbse

“It works,” Rohan confirmed.

Rohan sat back down. “Remember the first program we wrote? The one to find prime numbers?” Three days later, in the exam hall, Rohan

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) . “Remember the first program we wrote

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.

“Thanks, man.”

Related Posts

View All Posts »