func_code: def selectionsort(A):
      i = 0
      while i < len(A):
          j = i + 1
          while j < len(A):
              if A[j] < A[i]:
                  A[j], A[i] = A[i], A[j]
              j += 1
          i += 1
      return A