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