Tfno.: 976 75 54 60

Ip Sumita Arora Class 12 | PLUS – SUMMARY |

Implement a stack using a list.

He remembered from Sumita Arora: "A function that checks primality." He remembered Example 5.6 : "Pushing valid data onto a stack."

He wrote the code smoothly. No syntax errors. No logical flaws. ip sumita arora class 12

Meera didn't pick up the book. Instead, she picked up a marker and drew a big box on his whiteboard. "This is your main program." Then she drew a smaller box inside. "This is your function."

"Sumita Arora explains it with a chit system on page 187," she said. "A local variable is like a chit passed inside the small box. You can't use it outside. A global variable is like a chit on the main notice board. Everyone sees it." Implement a stack using a list

By 2:00 AM, Rohan had solved 12 programming problems. The thick book was no longer a monster—it was a tool . Every concept had an example. Every example had an edge case explained. Every chapter ended with a debugging section that anticipated his exact mistakes.

"I don't get scope ," Rohan groaned. "Global, local—it's just confusing. And stacks? Don't even start." No logical flaws

The practical exam began. The question: "Create a function that takes a list of numbers and returns a new list with only prime numbers, using a stack-like approach."

His older sister, Meera, a college coder, peeked into his room. "Still stuck?"

Rohan blinked. For the first time, the diagram from the book made sense. He grabbed the textbook and flipped to the unsolved exercises —questions he had skipped for months.

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.