title: How to create a dict from a list in the format {index : value}?
body: <p>Assume this list:</p>
  
  <pre><code>a = [0.41   1.87  1.10  7.05]
  </code></pre>
  
  <p>I'd like to build a dict that would look as follows:</p>
  
  <pre><code>d = {0: 0.41, 1: 1.87, 2: 1.10, 3: 7.05}
  </code></pre>
  
  <p>There are numerous answers on SO on how to convert from a list to a dict, however I could not find one that addresses this specific need (i.e. having the key value of dict being the element's index of the list).</p>
  
  <p>I can imaging there are cumbersome ways of doing this, such a using a <code>for</code> loop, getting the <code>a.index(i)</code>, appending, zipping etc but I wonder if I'm missing on a more efficient way of building this dictionary.</p>