An array is an indexed collection of values. In Python, two-dimensional data can be represented as a list whose elements are lists: each inner list is a row, and each position within it is a column. section 5.1.2
Olympic medal data
A medal table can become [[2, 0, 2], [1, 2, 0], [1, 1, 0], [0, 1, 0], [1, 0, 0]]. Access medals[0] to retrieve a row or medals[0][0] to retrieve a particular value. Nested for loops process every row and column. section 5.1.2
>>> medals = [[2, 0, 2], ... [1, 2, 0], ... [1, 1, 0], ... [0, 1, 0], ... [1, 0, 0]]
Browse the compact Python representation of the Olympic medal table. section 5.1.2







































