Level 2

Repeat Until

Level 2 · Chapter 12

What this lesson follows

CSTA K–12 Computer Science Standards (2017)

Algorithms & Programming · Grades 3–5

Use events, loops and if-then in one program.

Code 1B-AP-10Read the official text

Also practised: 1B-AP-15

Common Core State Standards for Mathematics

Operations & Algebraic Thinking · Grade 3

See how times and sharing undo each other.

Code 3.OA.B.6Read the official text

The short lines are our own words. We matched this lesson to these standards ourselves; the standards' owners have not reviewed or endorsed this course.

Common Core State Standards © 2010 National Governors Association Center for Best Practices and Council of Chief State School Officers. All rights reserved.

Today you will loop until a condition becomes true.

1👋 Warm-Up

For teachers · goals · guide
Lesson Outcomes · for teachersCSTA 1B
✦ CSTA 1B-AP-10 · CSTA 1B-AP-15 · ISTE 1.5.a · Standards
🎯 I canloop until a condition becomes true
🧩 New blocks1 block
📝 New words6 words
⏱ Lesson time~35 min
Teacher Guide

📋 Before class

⚠️ Common misconceptions

  • Students may think 'repeat until' keeps going after the condition is true — clarify: it STOPS when true.
  • Students may confuse the condition placement — the diamond block goes INSIDE the hexagonal slot, not outside the loop.

🎯 Differentiation

🐢 Struggling: Cover the screen and ask: 'Does the cat stop when it hits the wall, or keep going?' Act it out physically — walk until you touch the classroom wall. Then connect to the block.

🚀 Advanced: Challenge them to use two conditions: repeat until touching edge OR touching a colored wall. They will need to explore the 'or' operator block.

💡 During the lesson

  • Warm-UpAsk students: "If I tell you to walk forward — when do you stop?" Let them suggest answers (wall, door, sign). Connect: "A repeat until loop does the same thing. It walks until something happens." Activates prior knowledge of loops from earlier chapters. The stop is automatic 🤖 — the loop finds its own exit 🚪 when the condition becomes true.
    Point to each frame. At frame 3 ask: "What is the cat about to do?" At frame 4 ask: "Why did the loop stop?" (Because it touched the edge.) Reinforce: the loop exits automatically.
  • Try ItEach experiment changes one block in the loop. Experiment 1 changes the step size (the cat always stops at the edge — the loop finds its own exit). Experiment 2 dials the turn: 0 = no turn, so the cat reaches the edge; 15 = the cat walks in a circle and may never reach the edge, so the loop never ends — a good talking point. Experiment 3 dials the wait inside the loop (slower walking, same stop). Ask after each: "What number did you change? What changed?"
  • PlanDo the first box together. Before each pick, have students say what the GOAL cat does: "First the cat starts. Then it moves. Then it hits the edge. Then it says I made it." Then pick, and watch both stages. The verbal rehearsal locks in the sequence before coding.
  • BuildStep 3 is the critical snap. Show students that the diamond-shaped sensing block fits into the hexagonal slot in repeat until. If they place it outside, the loop has no condition. Walk the room and check every student's block placement before they click the ▶.