निम्नलिखित कोड के लिए आउटपुट क्या होगा?
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)
B)
C)
D)
Explanation:
Sure!
The array a
has 2 rows and 3 columns, so the total number of elements is 2 * 3 = 6
.
Answer: (C) 6.