def IndexOfMin(inputList):
  """
  Return the index of the min value in the supplied list
  """
  
  assert(len(inputList) > 0)
  
  index = 0
  minVal = inputList[0]
  for i, val in enumerate(inputList[1:]):
    if val < minVal:
      minVal = val
      index = i + 1
      
  return index