How to access specific items in a nested, ordered dict?

Viewed 28

I'm trying to iterate over the result output of the difPy package. The result seems to be a nested orderedDict e.g:

print(result)
OrderedDict([('20220907155224555324', {'filename': '223.JPG', 'location': 'F:\\Photos\\223.JPG', 'duplicates': ['F:\\Photos_backup\\223.JPG']})])

I want to be able to reference the 'filename', 'location' and 'duplicates' values. I've tried converting to dict but the key is always the id value and I can't refer to the sub-values. Can anyone please advise how I could achieve this?

0 Answers
Related