4 ms·
No it doesn't, you simply get the value from the last dict: >>> a = {'x': 1} >>> b = {'x': 2} >>> {**a, **b} {'x': 2} >>> {**b, **a} {'x': 1}
by skrause 9y ago
No it doesn't, you simply get the value from the last dict:
>>> a = {'x': 1}
>>> b = {'x': 2}
>>> {**a, **b}
{'x': 2}
>>> {**b, **a}
{'x': 1}