remove empty on array python code example
Example 1: python filter list empty string
str_list = list(filter(None, str_list))
Example 2: python remove empty list
list2 = filter(None, list1)
str_list = list(filter(None, str_list))
list2 = filter(None, list1)