So I have a dictionary like below:
{
'outerkey1':
{'innerkey1': 'value1'},
'outerkey2':
{'innerkey2': 'value2'}
}
I know the value of 'value2', which I can determine the key name is 'innerkey2', but how can I know it's from 'outerkey2'?
You could just loop through the dictionary: