how to exclude an item from list python code example Example: list exclude list def set_approach(a,b): return list(set(a)-set(b))