Sep-17-2020, 01:29 PM
Alright so hello everyone, I'm a noob and have really little experience in Python so pls go easy on me. My question in this post is why I'm unable to print(mytab[i]) in this code.
i=0 mytab = list(range(1,5)) while True: mytab[i]+=mytab[i] print(mytab[i]) i+=1 if i>3: break print(mytab[i])It is just a simple one I think so but i can't detect the problem in this code. So pls can you guys help me in fixing this problem and see what is the issue that i am facing.