returning index of minimum in a list of lists

JJLaRocque at gmail.com JJLaRocque at gmail.com
Wed Jun 21 10:54:08 EDT 2006


Hi all,
Is there a simple python function to return the list index of the
minimum entry in a list of lists?
ie, for   [[3,3,3,3], [3,3,3,1], [3,3,3,3]]  to return 2,4.
Or, same question but just for a list of numbers, not a list of lists.
Thanks,
Josh




More information about the Python-list mailing list