May 2019
Beginner
528 pages
29h 51m
English
Lists can contain other lists as elements. A typical use of such nested (or multidimensional) lists is to represent tables of values consisting of information arranged in rows and columns. To identify a particular table element, we specify two indices—by convention, the first identifies the element’s row, the second the element’s column.
Lists that require two indices to identify an element are called two-dimensional lists (or double-indexed lists or double-subscripted lists ). Multidimensional lists can have more than two indices. Here, we introduce two-dimensional lists.
Consider a two-dimensional list with three rows and four columns (i.e., a 3-by-4 list) that might represent the ...
Read now
Unlock full access