I am new to Python. I want to extract multiple lists out of the nested dictionary. I did follow this link (Get nested arrays out of a dictionary) didn't help me much.
If I have a dictionary, say:
{"alpha": {2: {1: 1.1, 2: 4.1}, 3: {1: 9.1, 3: 4.1, 6: 5.1},
5: {1: 9.2, 3: 4.4, 6: 5.4}, 9: {1: 9.0, 3: 4.0, 6: 5.5}},
"beta": {2: {1: 4.0, 2: 7.9}, 3: {1: 24, 3: 89, 6: 98} ,
5: {1: 9, 3: 4, 6: 5}, 9: {1: 9.2, 3: 4.9, 6: 5.0}}}
How do I extract all these as individual lists say (alpha,beta,..), (2,3,5,9), (1,2,4,9), (1.1,4.1)
etc.
When I tried I could get only the list of (alpha,beta,..) and list of values associated with alpha and beta. The list of values is again a dictionary as it is inside a list. I can't further do dict.values() as the previous operation gave me a list. Therefore, Python throws an error. How do I make list of all these values and keys individually? Like I want to make a list of decimals and the keys associated with that.