A bit of technical explanation for the Why Lists part.
An internal problem for a list of unknown length is that it must somehow fit into the memory regardless of its length. There are two different possibilities:
( , ..), .
. , , . , , . , .
, .. . Python # 2, " ". , , :
, append. , , .
, , , numpy.array numpy.empty (not numpy.zeros) , ndarray.resize .
- numpy.array(l) l , ( 100 000 000, 0,5 ).
:
numpy.empty + ndarray.resize, , .