func_code: def swap(a, i, j):
      tmp = a[j]
      a[j] = a[i]
      a[i] = tmp
  
  
  def sort(a):
      i = 0
      while i < len(a):
          p = i
          i = i + 1
          while i < len(a):
              if a[i] < a[p]:
                  p = i
              i = i + 1
          swap(a, i, p)
          i = i + 1