निम्नलिखित कोड का परिणाम क्या है?<break-line><break-line>What is the output of the following code?<pre><code>import numpy as np
a = np.array([[1, 2, 3], [4, 5, 6]])
print(a.shape)</code></pre>
निम्नलिखित कोड का परिणाम क्या है?<break-line><break-line>What is the output of the following code?<pre><code>import numpy as np
a = np.array([[1, 2, 3], [0, 1, 4]])
print(a.size)</code></pre>
Correct Answer: सभी तत्व 1 के साथ एक मैट्रिक्स बनाने के लिए / To make a matrix with all element 1
Q29.
निम्नलिखित कोड का आउटपुट क्या है?<break-line><break-line>What is the output of the following code?<pre><code>import numpy as np
ary = np.array([4, 5, 6, 7, 8])
ary = ary + 1
print(ary[1])</code></pre>
निम्नलिखित कोड का आउटपुट क्या है?<break-line><break-line>What is the output of the following code?<pre><code>import numpy as np
a = np.array([1, 2, 3, 5, 8])
print(a.ndim)</code></pre>