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


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

Solution

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



List all Python Programs