Question from the Python Machine Learning test

Compare the memory usage of a list and a numpy array in Python

Easy

Consider a list l

l=[1,2,3,4,5]

and

t=numpy.array([1,2,3,4,5])

The list l occupies less memory than the t array

Author: W3D TeamStatus: PublishedQuestion passed 728 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!