I need to loop over an iterable and also have access to an index counter inside that loop:
i = 0
for item in items:
# ...
i += 1
Is there more consices Python syntax for doing that, perhaps one that both progresses the iterator and increases the index counter in the same for statement?