DEV Community

Discussion on: Reviewing Python - Fundamentals

Collapse
 
3cho0 profile image
3cho0

You should almost never use a counter in a python for-loop, use range or enumerate instead.

Collapse
 
davilopez profile image
David López

Using enumerate or range is definitely way more pythonic, however, in this example, I will agree with the author that s more understandable for people coming from other languages.