A simpler way to compute the ‘first index of the Min and Max value in a List, lst’ is:
Robert Weiner
491