NumPy Multi-Dimensional Arrays

Besides being a substitute for lists, you can also have NumPy multi-dimensional arrays.

A 2-D NumPy array is built like a list of lists:

my_array = [[list1],[list2],[list3]]

my_other array = [[],[],[]]

And a 3-D NumPy array could look like this:

3d_array = [my_array, my_other_array]

To discover how many dimensions a numpy array has, you can use the shape function:

3d_array.shape shows (2,3,?)