i'm having troubles to find a solution to this :
dict_a = {'deecf4bc': 'my_machine'}
dict_b = {'deecf4bc': 'blade-000'}
dict_ab = {'deecf4bc':'my_machine', ' : ', u'blade-000'}
This is a print of my dicts with this :
for key, value in dict_X():
print(key, ' : ', value)
Those dict came from Python libraries like Nova or Ironic I want to create a dict from 2 others based on the first column and I failed hard, I have tried this :
x = dict(a.items() + b.items())
and many more
Someone suggested this : How do I merge two dictionaries in a single expression in Python (taking union of dictionaries)?
It doesn't work as it display the same as dict_b
EDIT : As I was rewriting the dicts, it appears to me that the final form of data that I want is something like one key and 2 values, it it possible ?
Thank you