get the index of an element in Python List using enumerate()