Multidimensional Arrays
In this lesson, we will learn about multidimensional arrays and their properties.
We'll cover the following
Creation #
Arrays may have arbitrary dimensions as long as they fit in your computer’s memory. Multidimensional arrays, commonly known as matrices in Python, can be created with any of the methods given in the previous lesson by specifying the number of rows and columns in the array.
Note that the number of rows and columns must be a tuple (so they need to be between parentheses), because the functions expect only one input argument for the shape of the array, which may be either one number or a tuple of multiple numbers.
Get hands-on with 1400+ tech skills courses.