What will be output for the following code ?
import numpy as np
a=np.array([2,3,4,5])
print(a.dtype)
Qus
निम्नलिखित कोड का आउटपुट क्या होगा?
import numpy as np a=np.array([2,3,4,5]) print(a.dtype)
A. int32
B. int
C. float
D. none of these
Solution
A. int32Explanation
All elements in array are integer so the dtype of array is int32 or int64