If you replace this problem with finding the position of the first value, you can use list.index(value) to find it, and it’s okay to use enumerate:
def unique_index(L,e):
return [j for (i,j) in enumerate(L) if i == e]
Since we are looking for the position of the last occurrence, a simpler approach can be taken. Just reverse the list and find the first element.