The list.index(x) function returns the index in the list of the first item whose value is x.
list.index(x)
x
Is there a function, list_func_index()>
list_func_index()>
you could do this with a list-comprehension:
l = [8,10,4,5,7] filterl = [a for a in l if a % 2 != 0]
Then filterl will return all members of the list fulfilling the expression a % 2 != 0. I would say a more elegant method...