← Back to all tools

Locate · Read · Update

Arrays and Records Lab

Find an item by its position. Find a field by its name. Choose a structure that fits the data.

CS GCSE (2025) §1.2.2, 1.4.1; Unit 2 2.2.1, 2.3.1 (selected skills)CS AS Units 1 and 2 (foundation practice)

Start here

  1. Choose a structure and read the labelled example.
  2. Select an item, read its value, then update it. Undo lets you compare.
  3. Answer the practice question and explain your choice in OneNote.

Indexed items

One-dimensional array

Connect it to Python

Array, list, record or dictionary?

In the conceptual array model here, items have one type and a fixed shape. A Python list is a flexible sequence: it can grow, shrink and contain different types. These examples keep their shape and item type so you can practise array operations.

A two-dimensional array is modelled using equal-length Python lists inside a list. Here, row comes before column and both start at 0. Python uses two pairs of brackets, such as points[1][2].

A record groups named fields about one entity. Fields can have different types. A Python dictionary models a record here, with a fixed set of keys enforced by this lab. Python dictionaries themselves are not fixed-schema record types. A list of dictionaries models several records.

Practise before checking

Questions use the data currently shown, including your updates.

OneNote activity

Keep your worked example

Download the current fictional dataset as CSV, or a text worksheet with the data, questions and Python representation. These files are created in your browser. Use fictional labels, not pupil names or personal information.

Teaching scope and extension

GCSE core: selecting, interpreting and updating records and arrays up to two dimensions (1.2.2 and 1.4.1). Unit 2: selected design and Python implementation skills using lists and dictionaries (2.2.1 and 2.3.1). Validation feedback supports testing practice in 2.4.1. This is not full Unit 2 coverage.

Challenge: write a Python loop to total a row, find an item or search records by code. Test it independently with typical, boundary and invalid inputs. AS students can extend these models into their own programs; file/record design, tuples, slicing, formal representations and A-level data structures need further teaching.