how to find index of first same element in list python code example Example: get index of list python list.index(element)