Everything you need before the bell rings
Learning Objectives
Students will be able to…
- ✓Explain for loops.
- ✓Explain while loops.
- ✓Choose the right loop.
- ✓Use loops in code.
All loops repeat code — but a FOR loop and a WHILE loop are used in different situations. When do you use each one?
For Loop or While Loop?
Project this and sort each task by whether a FOR loop or a WHILE loop fits best.
50 minutes, five moves
Tap any phase to open the teacher moves and student actions.
Hook — Two Kinds of Loops
All loops repeat — but when do you use FOR vs WHILE?
👩🏫 Teacher Moves
- Show both loop types.
- Ask when to use each.
- Set the goal.
🎒 Student Actions
- See them.
- Wonder.
- Predict.
Unplugged — Unplug It
Students practice.
👩🏫 Teacher Moves
- Act out a for loop (fixed count).
- Act out a while loop (condition).
- Feel the difference.
🎒 Student Actions
- Count it.
- Wait for it.
- Feel it.
Use — For or While
Students use.
👩🏫 Teacher Moves
- Send students to For Loop or While Loop?
- Sort each task.
- Explain them.
🎒 Student Actions
- Sort them.
- Explain.
- Check.
Modify — Rewrite It
Students modify.
👩🏫 Teacher Moves
- Rewrite a for loop as a while loop.
- Predict the result.
- Explain the choice.
🎒 Student Actions
- Rewrite.
- Predict.
- Explain.
Create — Create
Students conclude.
👩🏫 Teacher Moves
- Write a for and a while loop.
- Explain when each fits.
- Complete the exit ticket.
🎒 Student Actions
- Write them.
- Explain.
- Complete the exit ticket.
Built to the standards you report on
Aligned to the CSTA K-12 Computer Science Standards and ISTE Standards for Students.
Use control structures including loops.
Design and iterate programs with loops.
Decompose problems into repeated steps.
Computational Thinker.
One lesson, every learner
Multilingual Learners
- Loop-type task cards.
- Sentence frame: “Use a ___ loop when ___.”
- Act out loops.
Support & Access
- Start with fixed-count vs. until.
- Sort one at a time.
- Use examples.
Stretch & Extend
- Write nested loops.
- Explain infinite loops.
- Use loops with lists.
What to gather
- 📽️Projector / board
- 🔁Loop task cards
- 💻For Loop or While Loop?
- 💻Coding tool
- ✏️Pens
- 🎫Exit-ticket slips
Key terms — hover for a quick definition
Exit Ticket
Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students.
Create: pick the loop.
Have students write two short tasks — one for a for loop and one for a while loop — and explain why each fits. A printable loops sheet is in the Computer Science library.
Study the key terms
Tap a card to flip it, then rate whether you knew it. Built from this lesson’s vocabulary.
Nice work!
Check your understanding
A quick self-check with instant feedback, drawn from this lesson’s key terms.
Nice work!
Printable worksheet
A print-and-go review sheet with a built-in answer key. Tap “Show answer key” to reveal answers, or print the clean version for students.
Part A · Write the word that matches each meaning
- repeats until a condition changes
- repeats a known number of times
- a variable that counts loops
- a true/false test
- a loop that never stops
- code that repeats
- one pass through a loop
- code that directs the flow
Part B · Show what you learned
- When would you use a FOR loop?
- When would you use a WHILE loop?
- What is an infinite loop?
Part B: 1) When you know how many times to repeat — like going through every item in a list. 2) When you repeat until a condition changes — like “until the user types yes.” 3) A loop whose condition never becomes false, so it never stops.