exclude a values not in list from a list code example Example: list exclude list def set_approach(a,b): return list(set(a)-set(b))