remove blank elements from a list of string python code example Example: python remove empty list list2 = filter(None, list1)