def remove_inplace_without_order(L, delitems):
    """Remove all items from `L` that are in `delitems` (not preserving order).
    >>> L = list(range(4)); remove_inplace_without_order(L, [0,2]); L
    [3, 1]
    """
idel = len(L)
for i in reversed(list(range(len(L)))):
    if L[i] in delitems:
        idel -= 1
L[i] = L[idel]
del L[idel:]
List Manipulation in Python with pop()