0 out of 68 challenges solved

Filter a list using the given function

def filter_lists(func, lst):
    """
    Applies a function to each element in a list and returns a new list containing only the elements for which the function returns True.

    Args:
    func (function): The function to apply to each element.
    lst (list): The input list.

    Returns:
    list: The new list containing the filtered elements.
    """
    # TODO: Implement the filter_lists function
    pass