I have predefined dictionaries and I need a function to form one dictionary out of several input dicts where the keys are the names of the input dictionaries.
For example, I have the following:
double_left = {
'left': 6
}
double_right = {
'right': 6
}
The output should be:
>>> output_dicts
{'double_left': {'left': 6}, 'double_right': {'right': 6}}
I already tried: How do you create nested dict in Python? but could not derive the answer.
Suggestions ?