# Write a Python program to Sort Nested keys by Value # Python3 code to demonstrate working of # Sort Nested keys by Value# Using sorted() + generator expression + lamda  # initializing dictionarytest_dict = {'Nikhil' : {'English' : 5, 'Maths' :  2, 'Science' : 14},             'Akash' : {'English' : 15, 'Maths' :  7, 'Science' : 2},             'Akshat' : {'English' : 5, 'Maths' :  50, 'Science' : 20}}  # printing original dictionaryprint("The original dictionary : " + str(test_dict))  # Sort Nested keys by Value# Using sorted() + generator expression + lamdares = {key : dict(sorted(val.items(), key = lambda ele: ele[1]))       for key, val in test_dict.items()}      # printing result print("The sorted dictionary : " + str(res)) 