Get value from asymmetrically nested dict with unique keys
Advertisements Say I have a nested dict, with asymmetrical nesting, and no key appearing more than once across the entire nested dict: d = { d1 : {d11: ‘a’, d12: ‘b’} d2 : {d21: ‘c’, d22: {d221: ‘d’, d222: ‘e’}} } I would like a function (without a module) that returns the value of any… Read More Get value from asymmetrically nested dict with unique keys