...
| Instead of one bracket used in one dimensional array, we will use two e.g. int[][] to define two-dimensional array. | |||||||
| In Python, we declare the 2D array (list) like a list of lists. First, we create an empty one-dimensional list. Then we generate 5 more lists (columns) using a The first number indicates the number of columns, the second is the number of rows, we could treat it the other way around as well, for example, matrices in mathematics have the number of rows come first. We've just created a table full of zeros. |
...