Sep-17-2020, 02:18 PM
Because it is outside the index element. scan by loop:
i=0 mytab = list(range(1,5)) while True: mytab[i]+=mytab[i] i+=1 if i>3: break for item in mytab: print(item)