I need help merging two dictionaries. I can merge them but the problem is I need the two dictionaries to maintain their order.
For expample:
x = {'a':1, 'b': 2}
y = {'b':10, 'c': 11}
z = dict(x.items() + y.items())
print z
{'a': 1, 'c': 11, 'b': 10}
This output is a problem. I need the output to be: {'a':1, 'b':10, 'c': 11}
The order of the letters must be maintained.