How to access the single value out of multiple values of a single key in the Python Dictionary without converting into tuple or list. I want to sort the single value of multiple values of a single key like
D1 = {"Key1":"Age1,Height1,Weight1","Key2":"Age2,Height2,Weight2","Key3":"Age3,Height3,Weight3"}
With Values like:
Dictionary1 = {"first":[5,13,10],"third":[2,6,1],"ten":[50,12,1]}
I want to sort the dictionary based on values where index is 1 and index start with "0". In this case values are 13,6,12(the middle value of all values of key). So in this ascending sorting order will be 6,12,13.
And now I want respective key which is in this case "third":6,"ten":12 and "first":13
How to sort this dictionary based on Height or Weight and retrieve the corresponding key?How to do in python by converting into other structure like tuple or list?How to do it without conversion and only using Dictionary?
Thanks in advance!!!
I know how to access values and keys. But I am not able to access the particular element of the values of a single key. How to access it in Dictionary?