title: Replace keys with values in a dictionary
body: <p>Newbie question in dictionaries.</p>
  
  <p>I'm trying to replace keys with values without using <code>iteritems</code> like I've seen in some answers here.</p>
  
  <p>I have 2 dictionaries. One with stuff in it and an empty one. I'd like to keep the first one as is, but print out the second one with the the keys and values replaced from the first one.</p>
  
  <p>So for example:</p>
  
  <p><code>d1 = {1:"hello", 2 : 10, 3 : 100.0}</code></p>
  
  <p>The print of d2 will be <code>"hello":1, 10:2, 100.0:3</code></p>
  
  <p>This is my try:</p>
  
  <pre class="lang-py prettyprint-override"><code>d1 = {1:"hello", 2 : 10, 3 : 100.0}
  d2 = {}
  for k in d1:
      d2[d1[k]] == d2[k]
  print(d2)
  </code></pre>
  
  <p>I'm not quite sure where I'm wrong.</p>