Write a function to remove empty list from a list and print.


Topic: Write a function to remove empty list from a list and print.

Solution

def remove_empty_list(num1: list):
    if isinstance(num1, list):
        modified = list(filter(None, num1))
        print(modified)



List all Python Programs