niter
is the variable name you are using for your loop. If you change it to i
, it will result in the very same behavior you are experiencing, since you do not use the loop variable inside the loop. If you were using niter
inside the loop, then changing it to i
in the for
row would give you the task of changing all its occurrences inside the loop. The loop variable changes its value in each iteration of the loop.
solved In python, what is niter, how is it different to counter?