Home Page > Variables

Variables

In this set of lessons, we are looking at variables.

A variable stores a piece of information in a computer’s memory while a program is running, that can be retrieved when needed.

A variable is an example of a data structure. As pupils move on to secondary school, they will learn about other data structures such as arrays.

A variable can be a number or text or perhaps true/false.