python filter empty list 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)
Example 3: python empty list
if not a:
print("List is empty")