def getMinIndex(seq): minIndex = 0 for i, x in enumerate(seq): if x < seq[minIndex]: minIndex = i return minIndex
seq.index(min(seq))