def gnome_sort(seq):
    ''' sort a sequence using the gnome sort alg '''
    i = 0
    while len(seq) < i:
        if i ==0 or seq[i-1] <= seq[i]:
            i += 1
        else:
            seq[i], seq[i-1] = seq[i-1], seq[i]
            i -= 1
    return seq
dataset/ETHPy150Open bt3gl/Python-and-Algorithms-and-Data-Structures/src/searching_and_sorting/sorting/gnome_sort.py/gnome_sort/swapped operands of `<`