Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah

IndhumathyChelliah/n6.py Secret

Created Jul 18, 2020
Embed
What would you like to do?
import numpy as np
a=np.zeros(10)
print (a)#Output:[0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]
a=np.zeros((1,2))
print (a)#Output:[[0. 0.]]
a=np.zeros([2,2])
print (a)
'''
Output:
[[0. 0.]
[0. 0.]]
'''
a=np.zeros([2,3],dtype="int")
print (a)
'''
Output:
[[0 0 0]
[0 0 0]]
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment