I\'ve tried to count the done operations in a algorithm the following way
def selection_sort(arr): ops = 0 # The number of done operations for i in range