MCQ Answer

How we can convert the Numpy array to the list in python?

How we can convert the Numpy array to the list in python?

हम पायथन में Numpy ऐरे को सूची में कैसे बदल सकते हैं?
Topic : Introduction to Programming

A. list(array) लिस्ट(ऐरे)

B. list.array लिस्ट.ऐरे

C. array.list ऐरे.लिस्ट

D. None of these इनमें से कोई नहीं




Correct Answer is :

A. list(array)



Explanation
import numpy as np
numpy_array = np.array([1, 2, 3, 4, 5]) # Creating a NumPy arrays
lst=list(numpy_array) # conver numpay array to list
print(type(lst)) # <class 'list'>


You can also convert a NumPy array to a Python list using the tolist() method of the NumPy array.

array_anme.tolist()

Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad