What is the output of the following code ?
import numpy as np y = np.array([[11, 12, 13, 14], [32, 33, 34, 35]]) print(y.ndim)
निम्नलिखित कोड का परिणाम क्या है ?
import numpy as np a = np.array([[1,2,3]]) print(a.shape)
What will be output for the following code ?
import numpy as np a = np.array([[1, 2, 3],[0,1,4],[11,22,33]]) print (a.size)
निम्नलिखित कोड के लिए आउटपुट क्या होगा?
size attribute of numPy array return the number of elements in array
What will be the output of the following ?
import numpy as np a = np.array([[ 1,2,3,4], [5,6,7,8], [9,10,11,12]]) print(a[2,2])
निम्नलिखित का आउटपुट क्या होगा?
What is the output of the following code?
import numpy as np a = np.array([1,2,3,5,8]) b = np.array([0,1,5,4,2]) c = a + b c = c*a print (c[2])
निम्नलिखित कोड का आउटपुट क्या होगा ?
import numpy as np a = np.array( [2, 3, 4, 5] ) b = np.arange(4) print(a+b)