How to create multidimensional Zeros Numpy array in Python

Panjeh
1 min readJun 21, 2020

You can first define the number of dimensions you want. e.g.:

d = (3,3)

Then create the corresponding Zeros array :

np.zeros(d)

Examples:

--

--