Derived from the flake8-simplify linter.
What it does#
for loops with explicit loop-index variables that can be replaced
Why is this bad?#
When iterating over a sequence, it's often desirable to keep track of the
index of each element alongside the element itself. Prefer the
builtin over manually incrementing a counter variable within the loop, as
enumerate is more concise and idiomatic.