code: def selection_sort(arr, simulation=False):
      
      iteration = 0
      if simulation:
          print("iteration",iteration,":",*arr)
          
      for i in range(len(arr)):
          minimum = i
          
          for j in range(i + 1, len(arr)):
              # "Select" the correct value
              if arr[j] < arr[minimum]:
                  minimum = j
  
          arr[minimum], arr[i] = arr[i], arr[minimum]
          
          if simulation:
                  iteration = iteration + 1
                  print("iteration",iteration,":",*arr)
              
      return arr
docs: Selection Sort
          Complexity: O(n^2)