remove empty lists from list of lists python code example Example: python remove empty list list2 = filter(None, list1)