Introduction to loops in Scratch - Barclays Code Playground

 Key Stage: Key Stage 2  Coding Language: Scratch  Resource type: Lesson plan + teacher guide

Resource overview

Creating clear and simple code makes fixing, or debugging, your code much easier and using loops to simplify your instructions is a great way to start writing efficient code. In this lesson get the class moving as they learn about loops through dance before moving on to create a drawing project using loops in Scratch.

Lesson plan (PDF- 362KB)   Teacher guide (PDF - 480KB)  
  • Key resource information

    • You will need:Laptops or desktop computers, access to, music and enough space to dance. 
    • This lesson includes a physical activity.
  • Teaching assessment opportunities

    • Have the class play each other’s animations and give feedback
    • Did everyone use the same loop blocks?
  • Lesson length

    • 45 minutes


  • Pupil objectives

    • "I can explain what a loop is in computer programming, where I might use one and for what purpose”
    • “I understand the operation of a process and its outcome. I can structure related items of information.”
    • “I can demonstrate a range of basic problem solving skills by building simple programs to carry out a given task, using an appropriate language.” 

Related resources

Introduction to Scratch

The purpose of this activity is to introduce Scratch for the first time to your class and to introduce some key computing vocabulary.

Introduction to conditionals

Conditional statements are all around us in everyday life and in computing. Use everyday examples to bring conditionals to life and get the class moving with an offline activity before creating a Rock, Paper, Scissors game using Scratch.

Introduction to variables

In a program, data values can be constant or variable. If data values are variable they can be changed by the program and the user, for example, when the user is asked a question like their age. Variables may change during program execution.

Any questions?

Code Playground is all about offering the support you need. If you have a question, comment or suggestion, please don’t hesitate to get in touch. We’d love to hear from you.