🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

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

What will be output for the following code ?

import numpy as np
a = np.array([11,2,3])
print(a.min())
A)
B)
C)
D)

Explanation:

Let's break down the code:

import numpy as np
a = np.array([11, 2, 3])
print(a.min())

Explanation:

  • a = np.array([11, 2, 3]) creates a NumPy array with the elements [11, 2, 3].

  • a.min() finds the minimum value in the array.

So, the minimum value in the array [11, 2, 3] is 2.

Answer:

(A) 2

Latest Updates