returning index of minimum in a list of lists
julius.welby at gmail.com
Wed Jun 21 18:43:00 CEST 2006
mins = 
listIndex = 0
result = 
for item in seq:
listIndex += 1
lowest = min([x for x in mins])
for item in mins:
if item == lowest:
A bit more verbose, but maybe slightly more readable??
I probably should have used enumerate like Paul did.
For the index of the *first* (or only) occurence of the minimum value
in a list of numbers you can just use:
More information about the Python-list