import numpy as np
np.zeros(10)
Create a vector with values ranging from 10 to 49
np.arange(10,50)
v = np.array([1,10,20,30])
v[::-1]
z=np.arange(12)
print(z.reshape(4,3))
print("----")
print(z.reshape(4,3).transpose())
z=np.array([1,2,0,0,4,0])
np.where(z==0)
np.eye(3)
np.random.seed(9999999) # ransom output will be same
np.random.random((3,3,3))
np.random.seed(2399999) # ransom output will be same
Z = np.random.random((10,10))
Zmin, Zmax = Z.min(), Z.max()
print(Zmin, Zmax)
np.random.seed(13999)
#np.random.random(30).mean()
#or
np.mean(np.random.random(30))
z=np.ones((10,10))
z[1:-1,1:-1]=0
z