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.

What this concept actually says

  • A loop is an instruction that says 'repeat these steps a certain number of times or until a condition is met'
  • Loops prevent us from writing the same step over and over — they make algorithms shorter and smarter
  • Loops always need a stopping condition; without one, they repeat forever

An analogy your child will recognise

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.

Common misconceptions to watch for

  • Loops are only useful for big, complicated tasks — small tasks don't need them
  • A loop will automatically know when to stop, so you don't need to write a stopping condition

Key facts in one breath

  • A loop repeats a set of steps either a fixed number of times or until a condition becomes true
  • Every loop must have a stopping condition — otherwise it runs forever (called an infinite loop)
  • Loops are one of the most powerful ideas in programming because they make algorithms much shorter
  • Almost every computer program uses loops — from games to weather forecasts to music apps

How Dhee Learning teaches this — the 3-stage question loop

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

Related concepts

Want your child to actually understand this?

Dhee turns this concept into a 15-minute spoken session — asking, listening, and probing — so your child builds the idea themselves.

Frequently asked questions

What is loops in instructions — explained for kids? +

A loop repeats steps until a job is done. How computers avoid writing the same thing over and over. For Class 3.

What's the most common mistake children make about this concept? +

Loops are only useful for big, complicated tasks — small tasks don't need them

How does Dhee Learning teach this in a Class 3 session? +

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.