Python для получения индекса и значения
# get index and value in python for loop
your_list = ['apple', 'banana', 'orange']
for index, value in enumerate(your_list):
print(index, value)
# will print the following:
# 0 apple
# 1 banana
# 2 orange
Dark Dotterel