For using numpy, import the numpy library.

import numpy

Create an Array of Zeros

To create a numpy array containing zeros, write: np.zeros(size)

To create an array of size 9 write: np.zeros(9)

Here is how this array is stored in memory:

   ┌───┬───┬───┬───┬───┬───┬───┬───┬───┐
 Z │ 0 │ 0 │ 0 │ 0 │ 0 │ 0 │ 0 │ 0 │ 0 │
   └───┴───┴───┴───┴───┴───┴───┴───┴───┘