def pop_indices(lst, indices):
    """
    pop the lst given a list or tuple of indices.
    this function modifies lst directly inplace.
    >>> pop_indices([1,2,3,4,5,6], [0,4,5])
    >>> [2, 3, 4]
    """
    for n in sorted(indices, reverse=True):
        lst.pop(n)
    return lst