AI or coding first: which should your child learn?

Coding Education

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
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.
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.
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.
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.
An array is a single container that holds many values in a set order, each reachable by its position number. It lets a program keep related data — like scores or names — together instead of in separate variables.
Arrays start at index 0 because the index tells the computer how far to move from the start of the array in memory. The first item is 0 steps away, so it sits at position 0.
A variable stores one value, while an array stores many values under one name. You reach each array value by its index, such as scores[2].
Yes. Scratch has "List" blocks that work just like arrays, letting children add, remove, and read items by position — a friendly first step before Python.
Start your child's tech journey
Book your free 60-minute trial class with an Algonova certified tutor. No payment, no obligation, just discover what your child can build.