input: Write a function to generate a Python program that sorts a list of numbers. The program should use the selection sort algorithm to sort the list in ascending order.
  
  
  assert sort_list([4, 2, 6, 7, 1]) == [1, 2, 4, 6, 7]
  assert sort_list([3, 5, 4, 1, 2]) == [1, 2, 3, 4, 5]
  assert sort_list([9, 8, 7, 6, 5]) == [5, 6, 7, 8, 9]
  assert sort_list([1]) == [1]
  assert sort_list([]) == []        
  
output: def sort_list(lst):
      for i in range(len(lst)):
          min_idx = i
          for j in range(i+1, len(lst)):
              if lst[j] < lst[min_idx]:
                  min_idx = j
          lst[i], lst[min_idx] = lst[min_idx], lst[i]
      return lst