(items: Iterable[T], items_to_exclude: Iterable[T])
return [item for item in items if item not in itemset]
Excludes certain items from a list, keeping the original order of
    the remaining items.
Excludes certain items from a list, keeping the original order of
    the remaining items.
Excludes certain items from a list keeping the original order of the remaining items .
def exclude_from_list(items: Iterable[T], items_to_exclude: Iterable[T]) -> List[T]:
    """Excludes certain items from a list, keeping the original order of
    the remaining items."""
    itemset = set(items_to_exclude)
    return [item for item in items if item not in itemset]
def exclude_from_list ( items : Iterable [ T ] , items_to_exclude : Iterable [ T ] ) -> List [ T ] : itemset = set ( items_to_exclude ) return [ item for item in items if item not in itemset ]