Class 3 · CBSE AI · Strand C — Algorithms are Recipes
What is a loop? Repeating steps in algorithms — for kids
A loop repeats steps until a job is done. How computers avoid writing the same thing over and over. For Class 3.
Class 3 · CBSE AI · Strand C — Algorithms are Recipes
A loop repeats steps until a job is done. How computers avoid writing the same thing over and over. For Class 3.
Washing clothes at a dhobi
A dhobi at a laundry washes each piece of clothing using the same steps: wet, scrub, rinse, wring. They repeat those same steps for every piece until the whole pile is done. That's a loop — same actions, repeated, with a clear ending: when the pile is empty.
Kolam/rangoli patterns
Drawing a kolam often means repeating the same small pattern unit around a central point — the same curve, drawn again and again, rotated each time. Loops in algorithms work the same way: one unit of action, repeated until the design is complete.
Every Dhee Learning session for this concept follows three stages. We share the questions Dhee actually asks, so you can hear what a session sounds like.
Stage 1 — Surface
If I asked you to write instructions for brushing every single tooth — all 28 of them — one step at a time, how long would that list be? Can you think of a shortcut?
Rote answer
"Child says 'you could write repeat' without explaining what repeating means or when it stops"
Understood
"Child explains you could write 'do this for each tooth' and recognises you need to know when the loop ends (when all teeth are done)"
Stage 2 — Reasoning
Here's an instruction: 'Keep stirring the kheer until it thickens.' This is a loop! What is the action being repeated? And what is the stopping condition?
Follow-up Dhee may use: What would happen to the kheer — and to your arm — if that instruction had no stopping condition?
Stage 3 — Application
Write a loop instruction for a robot cleaning a classroom floor. It should mop each row of tiles, one row at a time, until every row has been mopped. What does one 'loop' look like? When does it stop?
Misconception Dhee watches for: Child writes the loop but forgets to specify the stopping condition — producing an infinite loop
Dhee turns this concept into a 15-minute spoken session — asking, listening, and probing — so your child builds the idea themselves.
A loop repeats steps until a job is done. How computers avoid writing the same thing over and over. For Class 3.
Loops are only useful for big, complicated tasks — small tasks don't need them
Dhee opens with a question — for example: "If I asked you to write instructions for brushing every single tooth — all 28 of them — one step at a time, how long would that list be? Can you think of a shortcut?" — listens to your child's answer, then probes the reasoning behind it. The session ends when the child can apply the idea to a brand-new situation, not just recall it.