निम्नलिखित कोड के लिए आउटपुट क्या होगा?
What will be output for the following code ?
import numpy as np
a = np.array([[1,2,3],[0,1,4]])
print (a.size) A
1
B
5
C
6
D
4
Explanation
Sure!
The array a has 2 rows and 3 columns, so the total number of elements is 2 * 3 = 6.
Answer: (C) 6.
Correct Answer: C) 6