input: Write a function to generate a Python program that sorts a list of numbers. The function should take an array as input and modify the array in place to be sorted in ascending order. If the array is sorted, it should be printed.
  
  def sort_list(array):
      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)
  
  assert sort_list([4, 2, 6, 7, 1])==None
  assert sort_list([9, 8, 7, 6, 5])==None
  assert sort_list([1, 2, 3, 4, 5])==None
  assert sort_list([])==None
output: def sort_list(array):
      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]