What is a 2-dimensional array?
In IGCSE Computer Science, a 2-dimensional (2D) array extends the concept of a 1D array by adding another dimension. It is structured like a table with rows and columns, allowing data to be stored in a grid format.
How are 2D arrays useful?
2D arrays are used in applications such as spreadsheets, image processing, and game boards where data is organised in rows and columns.
Example in Python:
matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
print(matrix[1][2]) # Output: 6
Examiner-written IGCSE Computer Science revision resources that improve your grades 2x
- Written by expert teachers and examiners
- Aligned to exam specifications
- Everything you need to know, and nothing you don’t

Share this article