Closed deepsource-autofix[bot] closed 5 months ago
Using range(len(...)) is not pythonic. Python does not have not index-based loops. Instead, it uses collection iterators. Python has a built-in method enumerate which adds a counter to an iterable.
range(len(...))
enumerate
Using
range(len(...))
is not pythonic. Python does not have not index-based loops. Instead, it uses collection iterators. Python has a built-in methodenumerate
which adds a counter to an iterable.