I have code as mentioned below.
a={'test': { 'test':'Test2','scale':'scale4'},
'test2': {'test':'test5','scale':'scale44'},
'test3': { 'test':'Test2','scale':'scale4'}}
dict1={}
blue_print={}
for i,v in a.items():
blue_print['scale']=a[i].get('scale')
blue_print['test'] =a[i].get('test')
dict1.update(blue_print)
print(dict1)
The above showing the output only:
{'scale': 'scale4', 'test': 'Test2'}
I want the output should displayed like below:
{{'scale': 'scale4', 'test': 'Test2'},
{'scale': 'scale44', 'test': 'test5'},
{'scale': 'scale4', 'test': 'Test2'}}