What will be the output of following Python code?
import numpy as np a = np.array([(10,20,30)]) print(a.itemsize)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
Using itemsize, we can determine the byte size of each element. In the above code, a single-dimensional array has built, and we can determine the size of each element with the aid of the itemsize function.
The most important object defined in NumPy is the N-dimensional array, often referred to as numpy.ndarray. This array is a homogeneous, multidimensional container for elements of the same data type. It provides a powerful and efficient way to store, manipulate, and perform operations on numerical data in Python.
What is a correct syntax to print the number 8 from the array below:
arr = np.array([[1,2,3,4,5], [6,7,8,9,10]])
नीचे दी गई सरणी से संख्या 8 को प्रिंट करने के लिए एक सही सिंटैक्स क्या है: