Dictionary = {'dict1': {'part1': {'.wbxml': '1', '.rl': '2'}, 'part2': {
    '.wbdl': '3', '.rs': '4'}}, 'dict2': {'part3': {'.wbxml': '5', '.rl':
    '6'}, 'part4': {'.wbdl': '1', '.rs': '10'}}}
value = '3'

def find_parent_dict1(Dictionary):
    for key1 in list(Dictionary.keys()):
        item = {key1: key2 for key2 in list(Dictionary[key1].keys()) if value in
            list(Dictionary[key1][key2].values())}
if len(item) > 0:
    return item
find_parent_dict1(Dictionary)

def find_parent_dict2(Dictionary):
    for key1 in list(Dictionary.keys()):
        for key2 in list(Dictionary[key1].keys()):
            if value in list(Dictionary[key1][key2].values()):
                print({key1: key2})
find_parent_dict2(Dictionary)
Search for a value in a nested dictionary python