Please consider the following code:
i = [1, 2, 3, 5, 8, 13] j = [] k = 0 for l in i: j[k] = l k += 1 print j
The output (Python 2
One more way:
j=i[0] for k in range(1,len(i)): j = numpy.vstack([j,i[k]])
In this case j will be a numpy array
j