Python | Numpy np.legzero() method

np.legzero() method can be used instead of np.zeros for creating a array whose elements are 0.
Syntax :
np.legzero()
Return : Return array([0])
Example #1 :
|    Â# Python program explaining # numpy.legzero() method   Â# import numpy and legzero importnumpy as np fromnumpy.polynomial.legendre importlegzero  Â# using np.legzero() method ans =legzero  Âprint(ans)  | 
Output :
[0]
Example #2 :
| # Python program explaining # numpy.legzero() method   Â# import numpy and legzero importnumpy as np fromnumpy.polynomial.legendre importlegzero  Â# using np.legzero() method ans =legzero +[[1, 3, 5], [2, 4, 6]]  Âprint(ans)  | 
Output :
[[1 3 5] [2 4 6]]
 
				 
					


