I have a dict a = {'zgd': 0, 'zjd: 748'}
and another dict b = {'jds': 748, 'jdl': 100}
How can I combine b
into a
with another key, 'gzbx'
, like:
{'zgd': 0, 'zjd': 748, 'gzbx': {'jds': 748, 'jdl': 100}}
?
I'd like the simplest Python code to complete it.