Report Bug
Qus :

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)

Qus

निम्नलिखित कोड के लिए आउटपुट क्या होगा?

import numpy as np
a = np.array([[1, 2, 3],[0,1,4],[11,22,33]])
print (a.size)


A. 1
B. 3
C. 9
D. 4


Solution
C. 9



Explanation

size attribute of numPy array return the number of elements in array




Report Bug