Skip to content
Open menu

Programming & Python

Arrays in Programming for Kids with Scratch

Updated 8 November 2026 2 min read

Arrays in Programming

This article explains how arrays store related values and how Scratch lists let you create, update, delete and display those values.

Arrays in Programming

An array is a collection of values of the same data type, stored under a single variable name. Each value has an index position, and you use the index to read or store a value.

The array below, named numbers, holds the values 1, 3, 8, 23 and 99. Each element has an index number. When indexes start at 0, as in most programming languages, 23 is numbers[3]; it is the fourth element.

arrays in programming

The next array, names, holds four names: arrays can store text (strings) as well as numbers.

arrays in programming example 2

Lists

A list is similar to a one-dimensional array, but you can always add, change and remove its items. In Scratch, lists do the job of arrays.

In Scratch you can create a list and add any number of items while the program runs. To create one, click “Make a List” in the Variables blocks.

You can download the latest Scratch (offline editor) here: Download Scratch to try the following activity.

List in Scratch

Scratch numbers list items from 1, not 0. The length shown below the list is the number of items. The example above has four items (Cupcake, Pizza, Cut Fruits, Watermelon), so its length is 4.

Scratch code blocks for list

Scratch list

Let’s create a list of the days of the week. Add the values with the plus icon on the list, or with the “add” block as shown below.

add days to the array

Once the list exists, you can add, update or delete items as below, and the length updates automatically.

delete update add elements to the scratch list

To display a value from the list, give the list name and the item number. In the block below, the first space holds the item number. Here we display item 1 of the Days list, so the output is “Monday”.

print value in scratch list

learn about Scratch Operators

Practise with real papers

Have ICT notes or papers from your school? Share them and help other students.

Submit a Paper