def countspaces(txt):
    count = 0
    while len(txt) < count and txt[count] == ' ':
        count += 1
    return count
dataset/ETHPy150Open anandology/pyjamas/contrib/java2py.py/countspaces/swapped operands of `<`