Continuous division - IndexError: list index out of range

0
for i in lista:
    lista.append(X)
    X = X * 0.5

for i in range(100):
    print 'N[%d] = %.4f' %(i, lista[i])

This error always happens: IndexError: list index out of range

    
asked by anonymous 07.08.2016 / 21:16

0 answers