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