May-16-2019, 08:07 AM
I'm trying to iterate through the following dictionary and append in the list .
dic={'Dining': [{'Switchboard': [{'Fan': ['01:45.9166666666']}, {'Covelight': ['01:116.5']}, {'Light': ['01:182.4']}]}], 'Kids': [{'Switchboard': [{'Light': ['01:206.8']}, {'Fan': ['01:2.58333333333']}]}], 'Kitchen': [{'MultiSensor': [{'Red': ['01:0.95125']}]}, {'Switchboard': [{'Light2': ['01:125.2']}, {'Light': ['01:176.533333333']}, {'Fan': ['01:5.0']}]}], 'Living': [{'Switchboard': [{'Light': ['01:7.13333333333']}, {'Covelight': ['01:17.6']}, {'Fan': ['01:6.91666666667']}]}, {'MultiSensor': [{'Red': ['01:0.508333333333']}, {'Green': ['01:4.23333333333']}]}]}for example if I want to append '02:3.9' in {'Green': ['01:4.23333333333']}