Home›Lesson Plans›Computer Science›Programming · Grades 3–5

Loops: How to Repeat Without Repeating Yourself

Students discover the loop — a way to tell a computer “do this again and again” without writing the same command over and over — making programs shorter and easier to change.

Grades 3–5Loops45 minutes1 class periodCode LessonExplicit teaching4 StandardsISTE + CSTA
Start the Lesson
Assign or share this lesson

Copy link works with Canvas, Schoology, Moodle and any other LMS — paste it in as a resource or assignment.

Lesson at a Glance

Everything you need before the bell rings

Learning Objectives

Students will be able to…

  • ✓Explain that a loop repeats commands.
  • ✓Rewrite repeated commands using a loop.
  • ✓Predict how many times a loop runs.
  • ✓Explain why loops make code shorter and clearer.
Essential Question

To move 8 steps you could write “move” eight times… or you could use one loop. Why do coders love loops so much?

0
Lesson Phases
0
Vocabulary Terms
0
Standards Aligned
0
Interactive Task
Run a Loop · Interactive

Run a Loop

Project this and change how many times the loop repeats. Have students compare the short loop version to the long “write it every time” version, then run it.

🔄 Change the repeats — run the loopTry it
🐢🚩
Repeat: 4 times

The Lesson · Use · Modify · Create

45 minutes, five moves

Tap any phase to open the teacher moves and student actions.

1

Warm-Up — Write It Eight Times

5 min

Write “move” eight times — tiring, right?

👩‍🏫 Teacher Moves

  • Ask students to write “move” 8 times.
  • Note how repetitive it is.
  • Set the goal: loops.

🎒 Student Actions

  • Write the repeated command.
  • Feel the repetition.
  • Predict a shortcut.
2

Learn — Meet the Loop

10 min

Teacher introduces loops.

👩‍🏫 Teacher Moves

  • Show “repeat 8 times: move.”
  • Compare loop vs. the long way.
  • Explain the repeat number.

🎒 Student Actions

  • Learn the loop.
  • Compare short vs. long.
  • Read the repeat number.
3

Use It — Run a Loop

12 min

Students use the tool.

👩‍🏫 Teacher Moves

  • Have students change the repeat count.
  • Compare loop code to the long way.
  • Run and count the steps.

🎒 Student Actions

  • Change the repeats.
  • Compare the two versions.
  • Run and count.
4

Create — Loop It

13 min

Students create with loops.

👩‍🏫 Teacher Moves

  • Give repeated tasks to rewrite as loops.
  • Ask how many times each loop runs.
  • Combine a loop with other commands.

🎒 Student Actions

  • Rewrite commands as a loop.
  • Say how many times it runs.
  • Mix a loop with commands.
5

Share — Share

5 min

Students share a loop.

👩‍🏫 Teacher Moves

  • Invite a loop example.
  • Have the class predict its output.
  • Hand out the exit ticket.

🎒 Student Actions

  • Show a loop.
  • Predict the output.
  • Complete the exit ticket.
Standards Alignment

Built to the standards you report on

Aligned to the ISTE Standards for Students and the CSTA K-12 Computer Science Standards.

CSTA
1B-AP-10

Create programs that include sequences, events, loops, and conditionals.

CSTA
1A-AP-10

Develop programs with sequences and simple loops.

ISTE
Computational Thinker

Use algorithmic thinking and automation to solve problems efficiently.

CCSS
RI.3.3

Describe steps in a procedure using sequence language.

Differentiation

One lesson, every learner

Multilingual Learners

ELL / EMERGING READERS
  • Show a loop with a repeat-arrow visual.
  • Sentence frame: “Repeat ___ times: ___.”
  • Clap a repeated pattern to feel a loop.

Support & Access

IEP / 504
  • Start with a repeat of 2 or 3.
  • Provide the loop frame to fill in.
  • Use physical repetition before code.

Stretch & Extend

GIFTED / EARLY FINISHERS
  • Nest a small pattern inside a loop.
  • Rewrite a long program using loops.
  • Predict the output of a loop with two commands.
Materials

What to gather

  • 📽️Projector / board
  • 📓Notebooks
  • 💻Run a Loop
  • 🔁Repeat-pattern cards
  • ✏️Pencils
  • 🎫Exit-ticket slips
Vocabulary

Key terms — hover for a quick definition

loopa way to repeat commandsrepeatto do againcommanda single instructionprograma sequence of commandspatternsomething that repeatsefficientdoing more with lesscountthe number of repeatscodeinstructions a computer runs
Evaluate

Exit Ticket

Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students.

QUESTION 1
What does a loop do in a program?
It repeats a command (or commands) a set number of times, so you don’t have to write them over and over.
QUESTION 2
Rewrite “move, move, move, move” using a loop.
repeat 4 times: move.
QUESTION 3
Why do coders use loops?
Loops make programs shorter, easier to read, and easier to change — you edit the repeat number in one place.

Going deeper? Loop a dance.

Have students write a short movement “program” using a loop (repeat 4 times: clap, stomp) and perform it — then change the repeat number and see the difference. A printable loop-dance sheet is in the CS library.

Study · Flashcards

Study the key terms

Tap a card to flip it, then rate whether you knew it. Built from this lesson’s vocabulary.

🃏 LoopsFlip
Card 1
Term
Tap to flip →
Meaning
0

Nice work!

Practice · Quiz

Check your understanding

A quick self-check with instant feedback, drawn from this lesson’s key terms.

📝 LoopsQuiz
Score: 0
1 / 6
Question 1
0%

Nice work!

Practice · Worksheet

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.

🖨️ LoopsPrint
Name: ________________________
Date: ____________

Part A · Write the word that matches each meaning

Word bank: code, command, count, efficient, loop, pattern, program, repeat
  1. doing more with less
  2. a single instruction
  3. instructions a computer runs
  4. to do again
  5. a way to repeat commands
  6. something that repeats
  7. a sequence of commands
  8. the number of repeats

Part B · Show what you learned

  1. What does a loop do in a program?
  2. Rewrite “move, move, move, move” using a loop.
  3. Why do coders use loops?
Answer key — Part A: 1) efficient · 2) command · 3) code · 4) repeat · 5) loop · 6) pattern · 7) program · 8) count
Part B: 1) It repeats a command (or commands) a set number of times, so you don’t have to write them over and over. 2) repeat 4 times: move. 3) Loops make programs shorter, easier to read, and easier to change — you edit the repeat number in one place.