Skip to content

Introduction to Loops: Repeating ActionsActivities & Teaching Strategies

Active learning works for loops because students must physically test and observe repetition to grasp its value. Hands-on tasks turn abstract ideas about repetition into concrete experiences that build intuition for efficiency and control in code.

Year 6Technologies3 activities35 min45 min
45 min·Small Groups

Format Name: Drawing with Loops

Using a block-based coding platform like Scratch or Code.org, students write a 'repeat' block to draw a square, then a hexagon, and finally a star. They experiment with changing the number of repetitions and the angle of turns.

Prepare & details

Explain the primary benefit of using a loop instead of repeating code manually.

Facilitation Tip: During Pair Programming: Shape Patterns, model how to verbalize decisions by thinking aloud while choosing loop counts and shapes to build shared understanding.

Setup: Tables/desks arranged in 4-6 distinct stations around room

Materials: Station instruction cards, Different materials per station, Rotation timer

RememberUnderstandApplyAnalyzeSelf-ManagementRelationship Skills
40 min·Individual

Format Name: Animated Character Dance

Students program a character to perform a short sequence of movements (e.g., jump, spin, wave) repeatedly using a 'repeat' loop. They can adjust the number of repetitions to control the length of the dance.

Prepare & details

Compare the efficiency of a looped program versus a non-looped program for repetitive tasks.

Facilitation Tip: For Loop vs Manual Race, pause the activity after 3 minutes to ask groups which method felt faster and why, then restart the race to test their hypotheses.

Setup: Tables/desks arranged in 4-6 distinct stations around room

Materials: Station instruction cards, Different materials per station, Rotation timer

RememberUnderstandApplyAnalyzeSelf-ManagementRelationship Skills
35 min·Pairs

Format Name: Loop Debugging Challenge

Provide students with pre-written code snippets that contain errors in their loop structures. Students work in pairs to identify the logical or syntax errors and correct the code to achieve the intended outcome.

Prepare & details

Design a simple animation or sequence of actions using a basic loop structure.

Facilitation Tip: When students create Personal Animation Designs, circulate with a checklist of loop features to confirm each student’s use of a repeat or for-loop structure.

Setup: Tables/desks arranged in 4-6 distinct stations around room

Materials: Station instruction cards, Different materials per station, Rotation timer

RememberUnderstandApplyAnalyzeSelf-ManagementRelationship Skills

Teaching This Topic

Teach loops by starting with visible repetition, such as drawing shapes or moving sprites, so students see the outcome of their commands immediately. Avoid abstract theory until students have experienced the power of loops in practice. Research shows that concrete examples build mental models faster than explanations alone, so keep tasks visual and interactive. Encourage students to compare their looped code with manual repetition to highlight maintenance and efficiency benefits.

What to Expect

Successful learning looks like students recognizing when loops reduce repetition, choosing loop structures over copy-paste, and explaining their decisions with clear reasoning. They should also debug simple infinite loops and apply loops to varied tasks like drawing or animation.

These activities are a starting point. A full mission is the experience.

  • Complete facilitation script with teacher dialogue
  • Printable student materials, ready for class
  • Differentiation strategies for every learner
Generate a Mission

Watch Out for These Misconceptions

Common MisconceptionDuring Pair Programming: Shape Patterns, watch for students who assume loops always run forever because they see the shape being drawn repeatedly.

What to Teach Instead

Prompt pairs to adjust the loop count and observe how stopping the loop changes the output, then ask them to explain why the loop ended and how they controlled it.

Common MisconceptionDuring Loop vs Manual Race, watch for students who believe copy-pasting repeated commands is just as good as using a loop.

What to Teach Instead

Have groups compare their code lengths and editing speed after the race, then ask them to modify a single line in the looped version versus multiple lines in the manual version to demonstrate maintenance differences.

Common MisconceptionDuring Personal Animation Design, watch for students who only use loops for simple single actions like moving forward.

What to Teach Instead

Encourage students to add complexity by including direction changes or color shifts inside the loop, then have them present their animations to peers to highlight versatility.

Assessment Ideas

Exit Ticket

After Pair Programming: Shape Patterns, provide a short code block that repeats drawing a triangle without a loop. Ask students to rewrite it with a loop and write one sentence explaining why the loop is better.

Discussion Prompt

After Loop vs Manual Race, ask students to imagine changing the jump sequence from 10 jumps to 100 jumps. Have them discuss in pairs whether they would use loops or manual repetition, focusing on efficiency and ease of editing.

Quick Check

During Whole Class: Loop Demo Gallery, ask each student to create a one-second animation where a sprite repeats a motion five times using a loop. Circulate to confirm correct loop structure and repetition count.

Extensions & Scaffolding

  • Challenge students to create a nested loop that draws a grid or spiral pattern, then explain how inner and outer loops interact.
  • For students struggling with loop counts, provide pre-written partial code with missing loop values and ask them to fill in the correct number of repetitions.
  • Offer extra time for students to design a multi-character animation where one sprite’s movement controls another’s, using at least two nested loops.

Ready to teach Introduction to Loops: Repeating Actions?

Generate a full mission with everything you need

Generate a Mission