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