Python for Loop Получите номер итерации
for idx, item in enumerate(list):
print(item)
print('Iteration number: ', idx)
LazyCompiler
for idx, item in enumerate(list):
print(item)
print('Iteration number: ', idx)