Everything you need before the bell rings
Learning Objectives
Students will be able to…
- ✓Use a for loop.
- ✓Use a while loop.
- ✓Avoid infinite loops.
- ✓Pick the right one.
Which loop should you use — and when?
For vs While Loops
Project each one and have students answer about choosing a loop.
55 minutes, five moves
Tap any phase to open the teacher moves and student actions.
Hook — Which Loop?
You want to repeat something — how do you decide which loop to use?
👩🏫 Teacher Moves
- Pose the question.
- Share ideas.
- Set the goal.
🎒 Student Actions
- Think.
- Share.
- Get ready.
Use — For vs While
Students learn.
👩🏫 Teacher Moves
- Send students to For vs While Loops.
- Note for = known count.
- Note while = until a condition.
🎒 Student Actions
- Answer.
- Note it.
- Note it.
Modify — Use It
Students practice.
👩🏫 Teacher Moves
- Write a for loop.
- Write a while loop.
- Add a stopping condition.
🎒 Student Actions
- For.
- While.
- Stop.
Create — Create
Students apply.
👩🏫 Teacher Moves
- Pick a loop for a task.
- Write it.
- Avoid an infinite loop.
🎒 Student Actions
- Pick.
- Write.
- Check.
Reflect — Reflect
Students close.
👩🏫 Teacher Moves
- When do you use a for loop?
- When a while loop?
- Complete the exit ticket.
🎒 Student Actions
- Say it.
- Say it.
- Complete the exit ticket.
Built to the standards you report on
Aligned to the CSTA K-12 Computer Science Standards and the ISTE Standards for Students.
Use for and while loops.
Justify the choice of loop.
Test and debug loops.
Reason about repetition.
One lesson, every learner
Multilingual Learners
- For/while example cards.
- Frame: "I use for when ___."
- Trace each loop.
Support & Access
- Focus on for loops.
- Use a template.
- Count repeats.
Stretch & Extend
- Convert for to while.
- Add a break.
- Avoid off-by-one errors.
What to gather
- 📽️Screen / board
- 🔁Loop cards
- 💻For vs While Loops
- 💻Python
- 📓Notebooks
- 🎫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.
Reflect: for vs while loops.
Have students pick and write the right loop for a task. A printable loop sheet is in the CS 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 a known number of times
- a true/false test
- a loop that never stops
- exit a loop early
- a group to loop over
- one pass of a loop
- repeats until a condition changes
- tracks loop progress
Part B · Show what you learned
- When do you use a for loop?
- When do you use a while loop?
- What is an infinite loop?
Part B: 1) When you know the count or loop over a collection. 2) When you repeat until a condition changes. 3) A loop that never stops — usually a bug.