индексация петли
for index, item in enumerate(list):
print("index:", index, "value:", item)
Contended Cobra
for index, item in enumerate(list):
print("index:", index, "value:", item)