how to remove all the sublist from a list in python code example Example: list exclude list def set_approach(a,b): return list(set(a)-set(b))