input: 
  def sort_list(array):
      """Sorts a list of numbers using the selection sort algorithm.
  
      >>> sort_list([4, 2, 6, 7, 1])
      [1, 2, 4, 6, 7]
      """
      n = len(array) 
    
      for i in range(n): 
    
          min_idx = i 
          for j in range(i+1, n): 
              if array[min_idx] > array[j]: 
                  min_idx = j 
          array[i], array[min_idx] = array[min_idx], array[i]
  
  if __name__ == "__main__":
      array = [4, 2, 6, 7, 1]
      sort_list(array)
      print(array)
  
output:     return array