0 out of 68 challenges solved

Map a function to each element in a list

def map_lists(func, lst):
    """
    Applies a function to each element in a list and returns a new list containing the results.

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

    Returns:
    list: The new list containing the results of applying the function to each element.
    """
    # TODO: Implement the map_lists function
    pass