[Solved] How can this for-loop with range be explained [closed]


First iteration, j is 0, i is 1. j is set to 0+1 == 1.

Second interation, j is 1, i is 3. j is set to 1+3 == 4.

Third iteration, j is 4, i is 5. j is set to 4+5 == 9.

Fourth iteration, j is 9, i is 7. j is set to 9+7 == 16.

1

solved How can this for-loop with range be explained [closed]