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

x का डेटाटाइप क्या है?

What is the datatype of x ?

import numpy as np
a=np.array([1,2,3,4])
x= a.tolist()
A)
B)
C)
D)

Explanation:

Let's break down the code:

import numpy as np
a = np.array([1, 2, 3, 4])
x = a.tolist()
  • a is 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.

Latest Updates