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