def match(first_list, second_list, attribute_name):
    """Compares two lists and returns true if in both there is at least one element which
    has the same value for the attribute 'attribute_name' """
    for i in first_list:
        for j in second_list:
            if i[attribute_name] == j[attribute_name]:
                return True
    return False