How to create multidimensional Zeros Numpy array in Python

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:

Image for post
Image for post

Written by

Web geek, Self-taught full-stack web developer, Learning Python, Laravel, Vuejs, UX/UI design, Nuclear Physicist PhD

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store