Skip to Content

A two-dimensional list is a list that contains lists for each of its elements. This would look something like this in Python: [[1, 2, 3], [4, 5, 6], [7,8,9]].

A list is denoted with square brackets [...] with each element inside separated by a comma , therefore a 2-dimensional list will contain at least two distinct sets of square brackets [[...], ...].

Two-dimensional lists are common in Python and can help when dealing with rows of data from a CSV file.