Difference between numpy array and list?



Suraj Said

+0 -0

Numpy

Numpy array is a collection homogeneous element (same datatype) and having contiguous memory allocation.

List

List is collection of non- homogeneous element (different datatype) and having non-contiguous memory allocation if non- homogeneous element are present.



Submit Your Response