x का डेटाटाइप क्या है?
What is the datatype of x ?
import numpy as np
a=np.array([1,2,3,4])
x= a.tolist() A
int
B
array
C
tuple
D
list
Explanation
Let's break down the code:
import numpy as np
a = np.array([1, 2, 3, 4])
x = a.tolist()
ais a numpy array.- The method
.tolist()converts a numpy array into a Python list.
So, the variable x will be a list.
Answer: (D) list.
Correct Answer: D) list