how to remove empty value in list code example Example: python remove empty list list2 = filter(None, list1)