Often when we use a for-loop in Python, we tend not to modify the loop variable inside the loop. The impulse typically comes from acquaintance with other programming languages like C++ and Java. But for-loops don't work that way in Python. Modifying the loop variable has no effect on the iteration.
Most Python Programmers Don't Know This About Python For-loops
Wow!! I had no clue! and have been using Python for years. thanks for sharing Avi.