for loop python counter code example
Example: python for enumerate loop
>>> values = ["a","b","c"]
>>> for count, value in enumerate(values):
... print(count, value)
...
0 a
1 b
2 c
>>> values = ["a","b","c"]
>>> for count, value in enumerate(values):
... print(count, value)
...
0 a
1 b
2 c