title: How to generate a dictionary from other two dictionaries?
body: <p>If</p>
  <p><code>d1 = {'Mercury': 10, 'Venus': 20, 'Earth': 30, 'Mars': 40}</code></p>
  <p>and</p>
  <p><code>d2 = {'Ten': 'M', 'Twenty': 'V', 'Thirty': 'E', 'Forty': 'F'}</code></p>
  <p>then how to generate a new dictionary where the keys belong to d1 and the values belong to d2, similar to the following dictionary:</p>
  <p><code>newD = {'Mercury': 'M', 'Venus': 'V', 'Earth': 'E', 'Mars': 'F'}</code></p>
  <p>How to do it through comprehension, loops or any other way?</p>
  <p>Thanks.</p>