def formatted_dc_dict(dc_dict):
    """Change the formatting of the DC data dictionary.

    Change the passed in DC data dictionary into a dictionary
    with a list of values for each element.
    i.e. {'publisher': ['someone', 'someone else'], 'title': ['a title'],}
    """
    for key, element_list in dc_dict.items():
        new_element_list = []
        # Add the content for each element to the new element list.
        for element in element_list:
            new_element_list.append(element['content'])
        dc_dict[key] = new_element_list
    return dc_dict
def formatted_dc_dict ( dc_dict ) : for key , element_list in dc_dict . items ( ) : new_element_list = [ ] for element in element_list : new_element_list . append ( element [ 'content' ] ) dc_dict [ key ] = new_element_list return dc_dict
Change the formatting of the DC data dictionary.

    Change the passed in DC data dictionary into a dictionary
    with a list of values for each element.
    i.e. {'publisher': ['someone', 'someone else'], 'title': ['a title'],}