I need to merge two dictionaries (multilevel), which are (in a very reduced form) like
a = {'a' : {'b' : '1'}}
b = {'a' : {'c' : '2'}}
The result should be
x = {'a' : {'b: '1', 'c' : '2' }}
Does Python (3.9) provide a function to merge them in the required way? Or can this be done in a failsave procedure?
The actual data has several more levels with different length.
Thanks in advance.