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