Home›Lesson Plans›Computer Science›Computer Science · Grade 5

Loops: Repeat It!

Fifth graders learn about loops — instructions that repeat an action over and over — discovering how loops make code shorter, faster to write, and much less repetitive.

Grade 5Programming40 minutes1 class periodUse → Modify → CreateExplicit teaching4 StandardsCSTA
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…

  • ✓Define a loop.
  • ✓Explain repetition.
  • ✓Rewrite steps with a loop.
  • ✓Explain why loops help.
Essential Question

What if you had to write “take one step” 100 times to make a character walk across the screen? There’s a better way! How do loops let computers repeat actions the easy way?

0
Lesson Phases
0
Vocabulary Terms
0
Standards Aligned
0
Interactive Task
Explore · Interactive

Loops Check

Project each item and have students answer about loops. The tool explains how loops repeat actions.

🔁 Understand loopsTry it
Answer each question about loops.
The Lesson · Use → Modify → Create (a coding progression with Unplugged practice)

40 minutes, five moves

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

1

Hook — Writing It 100 Times

5 min

Imagine writing “step” 100 times — is there a better way?

👩‍🏫 Teacher Moves

  • Show a long, repetitive list.
  • Ask for a shortcut.
  • Set the goal.

🎒 Student Actions

  • See the list.
  • Wonder the shortcut.
  • Predict loops.
2

Unplugged — Unplug It

10 min

Students practice.

👩‍🏫 Teacher Moves

  • Clap a repeating pattern.
  • Say “repeat 4 times: clap.”
  • Feel the loop.

🎒 Student Actions

  • Clap it.
  • Say the loop.
  • Feel it.
3

Use — Loops in Code

10 min

Students use the tool.

👩‍🏫 Teacher Moves

  • Send students to Loops Check.
  • Note how loops repeat.
  • Note the shortcut.

🎒 Student Actions

  • Answer them.
  • Note repeating.
  • Note the shortcut.
4

Modify — Change It

10 min

Students modify.

👩‍🏫 Teacher Moves

  • Change how many times a loop repeats.
  • Predict the result.
  • Explain the change.

🎒 Student Actions

  • Change it.
  • Predict it.
  • Explain it.
5

Create — Create

5 min

Students conclude.

👩‍🏫 Teacher Moves

  • Use a loop in a pattern.
  • Explain the loop.
  • Complete the exit ticket.

🎒 Student Actions

  • Use one.
  • Explain it.
  • Complete the exit ticket.
Standards Alignment

Built to the standards you report on

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

CSTA
1B-AP-10

Create programs that use loops to express ideas.

CSTA
1B-AP-11

Decompose problems into smaller parts.

CSTA
1B-AP-12

Modify and remix programs.

ISTE
5

Computational Thinker.

Differentiation

One lesson, every learner

Multilingual Learners

ELL / EMERGING READERS
  • Loop pattern cards.
  • Sentence frame: “Repeat ___ times: ___.”
  • Clap repeating patterns.

Support & Access

IEP / 504
  • Start with “repeat 2 times.”
  • Clap a loop.
  • Use short patterns.

Stretch & Extend

GIFTED / EARLY FINISHERS
  • Nest a loop inside a loop.
  • Loop a drawing pattern.
  • Code a repeating animation.
Materials

What to gather

  • 📽️Projector / board
  • 🔁Loop cards
  • 💻Loops Check
  • 📄Pattern strips
  • ✏️Pencils
  • 🎫Exit-ticket slips
Vocabulary

Key terms — hover for a quick definition

loopan instruction that repeatsrepeatto do againrepetitiondoing something over and overpatternsomething that repeatscodeinstructions for a computerprograma set of instructionscounthow many times to repeatefficientdoing more with less
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?
It repeats an action over and over.
QUESTION 2
Rewrite “clap, clap, clap, clap” using a loop.
“Repeat 4 times: clap.”
QUESTION 3
Why are loops helpful?
They save time and make code shorter by repeating steps automatically.

Create: a loop pattern.

Have students use a loop to make a repeating pattern — like a border of shapes or a dance move done several times. A printable loops sheet is in the Computer Science 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, count, efficient, loop, pattern, program, repeat, repetition
  1. to do again
  2. doing something over and over
  3. doing more with less
  4. something that repeats
  5. instructions for a computer
  6. an instruction that repeats
  7. how many times to repeat
  8. a set of instructions

Part B · Show what you learned

  1. What does a loop do?
  2. Rewrite “clap, clap, clap, clap” using a loop.
  3. Why are loops helpful?
Answer key — Part A: 1) repeat · 2) repetition · 3) efficient · 4) pattern · 5) code · 6) loop · 7) count · 8) program
Part B: 1) It repeats an action over and over. 2) “Repeat 4 times: clap.” 3) They save time and make code shorter by repeating steps automatically.