pylint-errors

C0200 (consider-using-enumerate)

:x: Problematic code:

array = [1, 2, 3, 4, 5]
for i in range(len(array)):
    print(i, array[i])

:heavy_check_mark: Correct code:

array = [1, 2, 3, 4, 5]
for i, n in enumerate(array):
    print(i, n)

Rationale:

Emitted when code that iterates with range and len is encountered. Such code can be simplified by using the enumerate builtin.