Skip to content

Using variables in programs

Lesson 2 of 5

MakeCode

7-11 yrs

Pupils apply their understanding of variables to record star-jumps and write an algorithm to represent this. They explore a program using variables and debug it so the BBC micro:bit can be used to record an activity.

Key learning:

  • To write algorithms that use variables
  • To explain how variables are used in programs
  • To debug programs containing variables