# Write a Python program to Extract values of Particular Key in Nested Values # Python3 code to demonstrate working of # Extract values of Particular Key in Nested Values# Using list comprehension  # initializing dictionarytest_dict = {'Gfg' : {"a" : 7, "b" : 9, "c" : 12},             'is' : {"a" : 15, "b" : 19, "c" : 20},              'best' :{"a" : 5, "b" : 10, "c" : 2}}  # printing original dictionaryprint("The original dictionary is : " + str(test_dict))  # initializing keytemp = "c"  # using item() to extract key value pair as wholeres = [val[temp] for key, val in test_dict.items() if temp in val]  # printing result print("The extracted values : " + str(res)) 