There is a type dictionary
z = { 'a': 1, 's': [{'d': 2, 'f': 3}{'d': 2, 'f': 3}{'d': 2, 'f': 3}]} it is necessary to add a key \ value from the main dictionary to each of the nested ones without changing the structure
z = { 'a': 1, 's': [{'d': 2, 'f': 3,'a': 1}{'d': 2, 'f': 3,'a': 1}{'d': 2, 'f': 3,'a': 1}]}
for d in z['s']: d['a'] = z['a']- Sergey Gornostaev