How can I find the maximum value from within the nested dictionaries and return this value with the key from the nested dictionary and the key from the 'main' dictionary (sorry, dont know the correct terminology for the outer dictionary)? For example, if I have the following:
my_dict = {
0: {1: 10, 2: 20, 3: 30},
10: {10: 100, 20: 200, 30: 300},
20: {100: 1000, 200: 2000, 300: 3000}
}
The maximum value is 3000 which has the key 300 and this belongs to the 'main' key 20. How can I return this value and its two associated keys?