...
Code Block | ||
---|---|---|
| ||
mat1 = [[1, 2, 3], [4, 5, 6]] # To make the matrices easier to read while coding, we can place the different lists vertical to eachother, ratherinstead thanof horizontally. mat2 = [[1, 2, 3], [4, 5, 6]] # Printing both of these matrices will result in the same output: [[1, 2, 3], [4, 5, 6]] # To alter the output to a more readable format, for-loops are very helpful: [[1, 2, 3], [4, 5, 6]] |
...