When the examiner asked, "Explain variable scope in your function," Rohan drew two boxes on the rough sheet—exactly like Meera had shown him, exactly like of the book.
Instead of reading the solution, he forced himself to write code. He failed the first time (forgot to convert to lowercase). Failed the second time (indentation error). On the third attempt, it worked. ip sumita arora class 12
Half the class panicked. Rohan smiled.
Write a program to check if a string is a palindrome. When the examiner asked, "Explain variable scope in
Implement a stack using a list.
His older sister, Meera, a college coder, peeked into his room. "Still stuck?" When the examiner asked
"I don't get scope ," Rohan groaned. "Global, local—it's just confusing. And stacks? Don't even start."