def remove_too_long(lst):
    return [x for x in lst if len(x) <= 5]


print(remove_too_long(['foo', 'bar', 'aaaaaaa']))

ca27c452154326a95c9b40ec444bf366ff6d2cd9
<mask token>

def remove_too_long(lst):
    return [x for x in lst if len(x) <= 5]


<mask token>

def remove_too_long(lst):
    return [x for x in lst if len(x) <= 5]


print(remove_too_long(['foo', 'bar', 'aaaaaaa']))
