title: How do I merge dictionaries together in Python?
body: <pre><code>d3 = dict(d1, **d2)
  </code></pre>
  
  <p>I understand that this merges the dictionary. But, is it unique? What if d1 has the same key as d2 but different value?  I would like d1 and d2 to be merged, but d1 has priority if there is duplicate key.</p>