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
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