编写一个函数，该函数获取一个可迭代的对象（如列表）和一个函数，并返回一个新列表，其中包含满足给定函数条件的所有元素。


def filter_list(lst, func):
    """
    :param lst: A list of elements
    :param func: A function that takes an element and returns a boolean
    :return: A list of elements for which the function returned True
    """
    return ______
def filter_list(lst, func):
    """
    :param lst: A list of elements
    :param func: A function that takes an element and returns a boolean
    :return: A list of elements for which the function returned True
    """
    return [element for element in lst if func(element)]