Creating Patterns With Code
Year 2 explore repetition and loops by creating patterns with simple code.
# Creating Patterns With Code
Programs are brilliant at making patterns. By repeating a small set of instructions, a computer can draw shapes, sounds and pictures again and again. This idea is called repetition, and it saves programmers a lot of time.
Repeating Steps
Instead of writing forward four times, programmers use a loop to tell the computer to repeat a step. A loop is an instruction that means do this again. With loops, short programs can make big, beautiful patterns.
Patterns With Shapes
Try programming a Bee-Bot to move forward and turn right, then repeat. If the turn is a quarter turn, the robot draws a square. Change the angle of the turn and watch the pattern change. This is a simple way to explore geometry through coding.
Patterns in Art
Digital art tools let you repeat shapes to make mandalas and tessellations. You can also make repeating patterns with coloured blocks or stickers, then describe the rule that creates the pattern. Describing the rule is like writing a tiny program.
Why Patterns Matter
Spotting and creating patterns helps with maths, music and problem solving. When you can describe a pattern clearly, you can turn it into code. This is how digital games make repeating backgrounds and how apps create colourful designs.
Related Resources
Need worksheets for this topic? Generate a personalised worksheet or browse our collection.

