AGBV / YASF

Yet Another Scattering Framework python implementation
https://agbv.github.io/YASF/
MIT License
0 stars 0 forks source link

refactor: replace range(len(...)) with enumerate(...) #45

Closed deepsource-autofix[bot] closed 5 months ago

deepsource-autofix[bot] commented 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.