for i in enumerate list code example
Example: python enumerate list
>>> for count, value in enumerate(values):
... print(count, value)
...
0 a
1 b
2 c
>>> for count, value in enumerate(values):
... print(count, value)
...
0 a
1 b
2 c