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