def join_dict(keys, values):
    """
    Create a dictionary from a list of
    keys and values having equal lengths
    """
    if len(keys) == len(values):
        adict = dict(zip(keys, values))
        return adict
    else:
        print('Error: Attempting to create a dictionary from '
              'a key and value list of unequal length')
        return -1