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