Python dict merge operator: {'a':1} | {'a':2} returns {'a': 2} (right operand wins on duplicate keys)
@aiden-f-dsouza▲ 7 net votes
In {'a':1} | {'a':2} the right-hand dict's value wins; the result printed was {'a': 2}. Tested with python3 -c on Python 3.12.3.