for index,item in enumerate(product_list): # print(product_list.index(item),item) print(index,item)
==========================
a=[1,2,3]
for i in enumerate(a):
print(i)