1.Import the numpy package under the name np (★☆☆)
Import numpy as np
2.Print the numpy version and the configuration (★☆☆)
print(np.__version__)
print(np.config())
3.Create a null vector of size 10 (★☆☆)
data = np.zeros(10)
4.How to get the documentation of the numpy add function from the command line? (★☆☆)
print(np.info(np.add))
5.Create a null vector of size 10 but the fifth value which is 1 (★☆☆)
data = np.zeros(10)
data[5]=1
6.Create a vector with values ranging from 10 to 49 (★☆☆)
data = np.range(10,50)
7.Reverse a vector (first element becomes last) (★☆☆)
data = np.range(10)
data[::-1]
8.Create a 3x3 matrix with values ranging from 0 to 8 (★☆☆)
data = np.arange(0,9).reshape((3,3))
9.Find indices of non-zero elements from [1,2,0,0,4,0] (★☆☆)
data = np.nonzero([1,2,0,0,4,0])
10.Create a 3x3 identity matrix (★☆☆)
data = np.eye(3)
11.Create a 3x3x3 array with random values (★☆☆)
data = np.random.random((3,3,3))
12.Create a 10x10 array with random values and find the minimum and maximum values (★☆☆)
data = np.random.random((10,10))
dataMin,dataMax = data.min(),data.max()
13.Create a random vector of size 30 and find the mean value (★☆☆)
data = np.random.random(30)
dataMean = data.mean()
14.Create a 2d array with 1 on the border and 0 inside (★☆☆)
data = np.ones((4,4))
dat