The range(n) function generates a list from 0 to n-1
So your python code should be
for i in range(len(numbers)):
And it would work