np 2d array code example
Example 1: 3d array in numpy
>>> a = np.zeros((2, 3, 4))
>>> a
array([[[ 0., 0., 0., 0.],
[ 0., 0., 0., 0.],
[ 0., 0., 0., 0.]],
[[ 0., 0., 0., 0.],
[ 0., 0., 0., 0.],
[ 0., 0., 0., 0.]]])
Example 2: how to create multidimensional array in python using numpy
from numpy import *
array = array([[1,2,3,4],[3,4,2,5]])
## if want you can print it
print(array)