ShriRam Changed status to publish August 21, 2023
my_list=[{‘key’:{‘subkey’:1}},{‘key’:{‘subkey’:10}},{‘key’:{‘subkey’:5}}]
print(“Original List: “)
print(my_list)
my_list.sort(key=lambda e: e[‘key’][‘subkey’], reverse=True)
print(“Sorted List: “)
print(my_list)
ShriRam Changed status to publish August 21, 2023