python 3 empty list code example
Example 1: python remove empty list
list2 = filter(None, list1)
Example 2: empty list in python
# Python program to declare
# empty list
# list is declared
a = []
list2 = filter(None, list1)
# Python program to declare
# empty list
# list is declared
a = []