python iterate with item and number 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