how to write a function in python that accepts a list of dictionaries and returns a new list of strings
    """
    name = [{"first":"john","last":"doe"},{"first":"jane","last":"doe"}]
    **function should accept name as the argument** 
    extract_name(name):
    
    expected o/p = # ['john Doe','jane Doe']
    """
I have tried these codes
name = [{"first":"john","last":"doe"},{"first":"jane","last":"doe"}]
def extract_names(name):
    for id in name:
        res = id.values()
        print(list(res))
extract_names(name)
"""
output
['john', 'doe']
['jane', 'doe']
"""
But im getting the o/p on two different lines also I wanna know how can map help in this problem
 
     
     
    