Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

creating numpy array using zeros

import numpy as np
   
b = np.zeros(2, dtype = int)
print("Matrix b : 
", b)
   
a = np.zeros([2, 2], dtype = int)
print("
Matrix a : 
", a)
   
c = np.zeros([3, 3])
print("
Matrix c : 
", c)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #creating #numpy #array #zeros
ADD COMMENT
Topic
Name
5+4 =