Skip to content
Computing · Year 4

Active learning ideas

Sequences in Programming

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.

National Curriculum Attainment TargetsKS2: Computing - Programming and Algorithms
20–30 minPairs → Whole Class3 activities

Activity 01

Inquiry Circle20 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.

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

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

What to look forPresent students with a simple block-based program (e.g., moving a character 3 steps forward, turning right, moving 2 steps forward). Ask them to draw the final position of the character on a grid and explain their prediction.

AnalyzeEvaluateCreateSelf-ManagementSelf-Awareness
Generate Complete Lesson

Activity 02

Peer Teaching30 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).

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

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

What to look forGive students a scenario: 'Make a character draw a square.' Ask them to write down the sequence of commands they think would achieve this. Then, ask them to explain why the order of their commands is important.

UnderstandApplyAnalyzeCreateSelf-ManagementRelationship Skills
Generate Complete Lesson

Activity 03

Gallery Walk25 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.

Evaluate the importance of command order in a program.

Facilitation TipDuring 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.

What to look forShow two versions of the same program, one with commands in the correct sequence and one with a few commands swapped. Ask students: 'What is the difference between these two programs? Which one works as intended and why? What would happen if we changed the order of commands in the working program?'

UnderstandApplyAnalyzeCreateRelationship SkillsSocial Awareness
Generate Complete Lesson

A few notes on teaching this unit

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.

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.


Watch Out for These Misconceptions

  • During Collaborative Investigation: Shape Detectives, watch for students using interior angles instead of exterior turns when planning their turtle paths.

    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.

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

    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.


Methods used in this brief