One-dimensional arrays
A named, ordered collection of elements of the same data type. Each element is reached by its index, its position number (0-based in Python, often 1-based in pseudocode).
Understanding One-dimensional arrays in VCE Software Development U3O1
What it does: All three elements are strings, so the array holds one consistent data type. append() adds a new element to the end of a Python list, making it grow. A fixed-size array would not allow this. An array stores many elements under one name, in order, and each element is reached by its index. Python uses zero-based indexing, so the first element is at index 0. The index is the position number used to reach an element. The value is the data stored at that position. An array of four elements has indexes 0, 1, 2 and 3. Using scores[4] goes past the end.
Common mistakes: Python arrays (lists) are zero-based, so the first element is at index 0. scores[1] is the second element. It should be first = scores[0]. The list is missing its closing square bracket. It should be names = ["Ava", "Liam", "Mia"].
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 72–96) and word search (Modules 72–113).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
one-dimensional arrayFill in the Blanks
Spot the Error
Student with a class code? Join your class →