def move_to_end(lst, el):
    return [x for x in lst if x != el] + [el] * lst.count(el)

948d1ad5171259f39bd8cfa6d0c3209ffcc0469f
<mask token>

def move_to_end(lst, el):
    return [x for x in lst if x != el] + [el] * lst.count(el)
