Everything you need before the bell rings
Learning Objectives
Students will be able to…
- ✓Explain a nested loop.
- ✓See how loops combine.
- ✓Count the repetitions.
- ✓Use nested loops.
One loop repeats a line of actions — but what if you need to fill a whole grid? You put a loop INSIDE a loop! How do nested loops work?
Nested Loops Check
Project each item and have students answer about nested loops. The tool explains loops inside loops and grids.
45 minutes, five moves
Tap any phase to open the teacher moves and student actions.
Hook — A Loop in a Loop
One loop makes a row — but a whole grid? Put a loop inside a loop!
👩🏫 Teacher Moves
- Show a grid pattern.
- Ask how to fill it.
- Set the goal.
🎒 Student Actions
- Look.
- Wonder.
- Predict.
Unplugged — Unplug It
Students practice.
👩🏫 Teacher Moves
- Act out an outer and inner loop.
- Fill a grid by hand.
- Count the runs.
🎒 Student Actions
- Act it.
- Fill it.
- Count it.
Use — Nested in Code
Students use.
👩🏫 Teacher Moves
- Send students to Nested Loops Check.
- Note grids.
- Count repetitions.
🎒 Student Actions
- Answer.
- Note it.
- Count.
Modify — Change It
Students modify.
👩🏫 Teacher Moves
- Change a loop count.
- Predict the total.
- Explain the change.
🎒 Student Actions
- Change it.
- Predict.
- Explain.
Create — Create
Students conclude.
👩🏫 Teacher Moves
- Design a nested-loop pattern.
- Explain the counts.
- Complete the exit ticket.
🎒 Student Actions
- Design it.
- Explain it.
- 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 nested loops.
Use loops to solve problems.
Recognize patterns in code.
Computational Thinker.
One lesson, every learner
Multilingual Learners
- Loop diagram cards.
- Sentence frame: “The inner loop runs ___ times.”
- Use a grid.
Support & Access
- Start with a 2×2 grid.
- Count aloud.
- Use a diagram.
Stretch & Extend
- Nest three loops.
- Make a multiplication grid.
- Draw a pattern with loops.
What to gather
- 📽️Projector / board
- 🔁Grid handouts
- 💻Nested Loops Check
- 💻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: nest a loop.
Have students describe a grid or pattern they could make with a nested loop. A printable nested-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
- the loop on the outside
- a horizontal line
- rows and columns
- a loop inside another loop
- the loop on the inside
- one pass through a loop
- doing something again
- a vertical line
Part B · Show what you learned
- What is a nested loop?
- What are nested loops useful for?
- If an outer loop runs 2 times and an inner loop runs 5 times, how many times does the inner code run?
Part B: 1) A loop inside another loop. 2) Working with grids, or rows and columns, like a game board. 3) 10 times (2 × 5).