May-18-2020, 08:09 PM
data = {'stoker': {}} data1 = {} data1['sensors'] = 'null' data1.update({'blowers': 'null'}) data['stoker'].update(data1) print(data)
Output:{'stoker': {'sensors': 'null', 'blowers': 'null'}}
Creating Nested Dictionaries Confusion
|
|
Messages In This Thread |
Creating Nested Dictionaries Confusion - by gw1500se - May-18-2020, 07:52 PM
RE: Creating Nested Dictionaries Confusion - by Yoriz - May-18-2020, 08:09 PM
RE: Creating Nested Dictionaries Confusion - by gw1500se - May-18-2020, 11:16 PM
|