Class 7 · CBSE AI · Strand B — Python for AI
What is a loop? Explained without code — for Class 7
A loop is one action repeated many times. The plain-English idea behind every for-loop. For Class 7.
Class 7 · CBSE AI · Strand B — Python for AI
A loop is one action repeated many times. The plain-English idea behind every for-loop. For Class 7.
Morning roll-call
for each roll number in 1..40: mark present or absent. Same action, different student each iteration.
Mid-day meal plate-packing
for each plate in 1..30: scoop rice, scoop dal, scoop veg, cover. Same recipe per plate, 30 times.
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
Morning roll-call: the teacher walks the rows. 'Roll 1?' tick. 'Roll 2?' tick. 'Roll 3?' tick. She does the SAME action — but for different students. What's the same, what's different?
Rote answer
"A loop is repetition in code."
Understood
"A loop is one written instruction that runs many times, with one small thing changing each time — like the roll number in attendance."
Stage 2 — Reasoning
If the teacher had 40 students and had to write down 'check Roll 1, check Roll 2, ... check Roll 40' on her notes, what's the problem? How does a loop solve it?
Follow-up Dhee may use: Think of a chant or prayer at home — does it repeat the same line? That's a loop without code.
Stage 3 — Application
On paper, write down a loop in plain language for: 'Pack 30 mid-day meal plates with rice, dal, vegetable.' What stays the same each time? What might change?
Misconception Dhee watches for: Thinking a loop must be inside a computer — chanting, roll-call, plate-packing are all loops we run every day without a computer.
Dhee turns this concept into a 15-minute spoken session — asking, listening, and probing — so your child builds the idea themselves.
A loop is one action repeated many times. The plain-English idea behind every for-loop. For Class 7.
Thinking a loop must repeat exactly the same thing — actually, one small thing changes each iteration.
Dhee opens with a question — for example: "Morning roll-call: the teacher walks the rows. 'Roll 1?' tick. 'Roll 2?' tick. 'Roll 3?' tick. She does the SAME action — but for different students. What's the same, what's different?" — 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.