title: python reverse dictionary
body: <p>given a dictionary:</p>
  
  <pre><code> d = {'name': 'Luke', 'age': 43, 'friend': 'Joe'}
  </code></pre>
  
  <p>i'm trying  to build a function that will change it so that the new dictionary will be:</p>
  
  <pre><code>d = {'Luke': 'name', 43: 'age', 'Joe':'friend'}
  </code></pre>
  
  <p>in other words the key will become the values and the values will become the keys.
  also the id of the dictionary wont change.</p>
  
  <p>i tried this code:</p>
  
  <pre><code>dict(map(reversed, d.items()))
  </code></pre>
  
  <p>i'm using python 3.x
  any help will be appreciated.</p>