0

I need to create a new nested dicts with new name using for. F.e.

ne_d = { 'dict1': {'name': 'Laura', 'surname': 'Les'},
       'dict2': {'name': 'Bear', 'surname': 'Grills'}}

it is necessary that new dictionaries are created through the for loop or otherwise, but dict3, dict4, etc.

the output should be something like this

{ 'dict1': {'name': 'Laura', 'surname': 'Les'},
'dict2': {'name': 'Bear', 'surname': 'Grills'}}
'dict3': {'name': '111', 'surname': '222'}}
'dict4': {'name': '333', 'surname': '444'}}
etc.

0 Answers0