how to remove a an empty list from a 2d list code example Example: python remove empty list list2 = filter(None, list1)