
Coding Education
What Is an Array? Definition and Examples for Kids

Hafiz Rahman
Lead Coding Instructor at Algonova Malaysia

An array is an ordered collection of items stored together in a single container, where each item sits in a numbered position so a program can find it instantly. Instead of creating a separate variable for every value, a programmer keeps related data — like a list of test scores, player names, or high scores — in one tidy structure and reaches any item by its number.
Table of Contents
How an Array Works
Picture a row of lockers, each with a number on the door. An array works the same way: it lines up values side by side, and every value gets an index (its position number). In Scratch, kids build this with a List block — they might make a list called scores and add 90, 85, and 100 to it. In Python the same idea looks like scores = [90, 85, 100]. Here is the fact that surprises most beginners: arrays start counting at 0, not 1. So scores[0] is 90, scores[1] is 85, and scores[2] is 100. This "zero-indexing" is one of the first big "aha" moments in coding.
Examples of Arrays
Everyday arrays include a list of test scores like [90, 85, 100], the names of players in a game, the days of the week, or the frames of an animation. A shopping app keeps its products in an array, and a music player keeps your songs in one. In Scratch these appear as List blocks, and in Python they are written inside square brackets. Each item keeps its own index, so a program can jump straight to the third song or the fifth score without reading through the rest.
Array vs List
In everyday coding the two words often mean the same thing: a group of values kept in order under one name. The real difference is technical. A classic array holds one type of value and has a fixed size in languages such as C or Java, while a list can grow, shrink, and hold mixed types. Python calls its flexible version a list, and Scratch calls it a List block, yet both behave like the array a beginner first meets. For young coders the takeaway stays simple: reach any item by its position number.
Why It Matters for Kids
Arrays teach children to organise information logically — a core computational-thinking skill in Malaysia's KSSR curriculum and STEM education. Once a child can store many values in one array, they can loop through them, sort them, or find the biggest one, which powers real projects like quiz games and score-keepers. Learn this hands-on in Algonova coding classes, where kids build with both Scratch and Python. See also what is a variable, the single-value building block an array groups together.
Curious? A free trial class is a fun first step.
