python count in for code example
Example: python for loop get iteration number
for idx, item in enumerate(list):
print(item)
print('Iteration number: ', idx)
for idx, item in enumerate(list):
print(item)
print('Iteration number: ', idx)