I have a list that has a minimum element that is present multiple times like
a = [1,2,1,1,4,5,6]
And I want Python to return the element
I'd just do it like this:
minimum = min(a) indices = [i for i, v in enumerate(a) if v == minimum]