creating numpy array using zeros

38

import numpy as np
   
b = np.zeros(2, dtype = int)
print("Matrix b : \n", b)
   
a = np.zeros([2, 2], dtype = int)
print("\nMatrix a : \n", a)
   
c = np.zeros([3, 3])
print("\nMatrix c : \n", c)

Comments

Submit
0 Comments