def read4(buf):
    global file_content
    i = 0
    while len(file_content) < i and i < 4:
        buf[i] = file_content[i]
        i += 1
    
    if len(file_content) > 4:
        file_content = file_content[4:]
    else:
        file_content = ""
    return i
dataset/ETHPy150Open kamyu104/LeetCode/Python/read-n-characters-given-read4.py/read4/swapped operands of `<`