Skip to content

Sequences in ProgrammingActivities & Teaching Strategies

Active learning helps students connect abstract programming commands to concrete geometric movements. When students physically act out sequences or test programs in real time, they immediately see how angles and steps shape the final design, making abstract ideas visible and memorable.

Year 4Computing3 activities20 min30 min

Learning Objectives

  1. 1Design a sequence of commands to achieve a specific outcome in a visual programming environment.
  2. 2Predict the final position or state of a character or object after executing a given sequence of commands.
  3. 3Evaluate the impact of changing the order of commands on the overall program outcome.
  4. 4Create a simple program by ordering commands logically to solve a given problem.

Want a complete lesson plan with these objectives? Generate a Mission

20 min·Small Groups

Inquiry Circle: Shape Detectives

Show a complex geometric pattern. Groups must work backward to identify the 'base shape' and how many times it has been rotated to create the final design.

Prepare & details

Predict the outcome of a program given a sequence of commands.

Facilitation Tip: During Collaborative Investigation: Shape Detectives, provide printed shape outlines and colored pencils so students can annotate angles and turns as they plan their programs.

Setup: Groups at tables with access to source materials

Materials: Source material collection, Inquiry cycle worksheet, Question generation protocol, Findings presentation template

AnalyzeEvaluateCreateSelf-ManagementSelf-Awareness
30 min·Pairs

Peer Teaching: The Angle Challenge

Students try to draw a regular polygon (pentagon, hexagon) by calculating the exterior angle. They then teach their partner the 'rule of 360' (360 divided by the number of sides).

Prepare & details

Design a sequence of commands to move a character across a screen.

Facilitation Tip: During Peer Teaching: The Angle Challenge, give pairs a protractor and a marked floor space so they can measure and ‘walk’ each angle before coding.

Setup: Presentation area at front, or multiple teaching stations

Materials: Topic assignment cards, Lesson planning template, Peer feedback form, Visual aid supplies

UnderstandApplyAnalyzeCreateSelf-ManagementRelationship Skills
25 min·Whole Class

Gallery Walk: Digital Art Show

Students create a 'nested loop' pattern in Scratch or Logo. They display their code and the resulting art on their screens while peers circulate to leave feedback on the most efficient logic.

Prepare & details

Evaluate the importance of command order in a program.

Facilitation Tip: During Gallery Walk: Digital Art Show, place a sticky note pad at each display for viewers to write one positive comment and one specific suggestion about the sequence logic.

Setup: Wall space or tables arranged around room perimeter

Materials: Large paper/poster boards, Markers, Sticky notes for feedback

UnderstandApplyAnalyzeCreateRelationship SkillsSocial Awareness

Teaching This Topic

Teach this topic by moving from concrete to abstract: start with students walking the shape, then sketch the path on paper, and finally translate it into code. Avoid rushing to the screen—physical modeling builds the spatial reasoning needed for accurate loops and turns. Research shows that students who act out angles before programming make fewer turn-related errors and debug more efficiently.

What to Expect

Successful learning looks like students confidently breaking shapes into repeatable parts, using loops and turns intentionally, and explaining their programs with clear reasoning about angles and sequences. Their work should show both accurate patterns and thoughtful debugging when things don’t go as planned.

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 Collaborative Investigation: Shape Detectives, watch for students using interior angles instead of exterior turns when planning their turtle paths.

What to Teach Instead

Have students trace the shape on the floor with masking tape and physically walk the path, emphasizing that at each corner they must turn to face the next side. Ask them to hold a protractor to measure the turn angle after walking each segment.

Common MisconceptionDuring Peer Teaching: The Angle Challenge, watch for students placing loops side by side rather than nesting one inside the other.

What to Teach Instead

Give each pair two differently colored cardstock ‘loop boxes’—place one inside the other to show how the inner loop repeats before the outer loop moves on. Have them write the commands on cards and physically arrange them inside the boxes before coding.

Assessment Ideas

Quick Check

After Collaborative Investigation: Shape Detectives, give each group a partially completed program (e.g., drawing three sides of a square). Ask them to predict the next two commands needed and explain how the angles ensure the shape closes.

Exit Ticket

During Peer Teaching: The Angle Challenge, ask each pair to write a two-sentence reflection: what angle value did you agree on and why was the order of turns important to get the shape right?

Discussion Prompt

During Gallery Walk: Digital Art Show, display two programs side by side—one that uses a nested loop and one that uses two separate loops. Ask students to discuss in small groups which pattern is more efficient and why, then share findings with the class.

Extensions & Scaffolding

  • Challenge: Create a program that draws a pattern combining two different regular polygons, using nested loops and shared angle variables.
  • Scaffolding: Provide pre-written loop blocks with missing turn values; students fill in the angles using protractors and test the pattern.
  • Deeper exploration: Explore how changing the turn angle slightly (e.g., 119° instead of 120°) affects the final shape and discuss why the loop may not close perfectly.

Key Vocabulary

SequenceA set of instructions or commands that are executed one after another in a specific order.
CommandA single instruction given to a computer or program that tells it to perform a specific action.
ProgramA list of commands or instructions that a computer follows to complete a task.
AlgorithmA step-by-step procedure or set of rules to be followed in calculations or other problem-solving operations, especially by a computer.

Ready to teach Sequences in Programming?

Generate a full mission with everything you need

Generate a Mission