def search_items(d, search_kv):
    """ Function that search dictionary (param: d) by the value input (search_v)

    parameters:
    d (dictionary): The content of the text file as dictionary
    search_val (str): Search by dictionary's value

    returns:
    dict: Search result of param: search_v as dictionary
     """
    d_result = {}
    for key, value in d.items():
        if key.upper() == search_kv.upper():
            d_result[key.upper()] = value
    for key, value in d.items():
        x = 0
        while x < len(value):
            if value[x].lower() == search_kv.lower():
                d_result[key.upper()] = value
            x += 1
    return d_result
