Skip to content
Advertisement

make nested dict from list of chains (python)

everyone. I have the structure like this:

JavaScript

And want the output like this:

JavaScript

I have a lot of of lists (chains) in the data, so I need your help!) How to do it in python?

Advertisement

Answer

Source : How to merge dictionaries of dictionaries?

JavaScript
Advertisement