Python, Data Science, Data Engineering, Programming, Coding.
numpy.array, because each element is a full Python object with pointers and reference count. The larger costs in lists occur when we create a list larger than the default allocated space, which is 26 items. At that point, Python must allocate new space for the list, copy the contents over, and free