title: List to Dictionary: Even items as keys, odd items as values
body: <p>I am trying to use Python to convert a <code>list</code> into a <code>dictionary</code> and I need to help coming up with a simple solution.  The list that I would like to convert looks like this:</p>
  
  <pre><code>inv = ['apples', 2, 'oranges', 3, 'limes', 10, 'bananas', 7, 'grapes', 4]
  </code></pre>
  
  <p>I want to create a <code>dictionary</code> from this <code>list</code>, where the items in the even positions (apples, oranges, limes, bananas, grapes) are the <code>keys</code>, and the items in the odd positions (2, 3, 10, 7, 4) are the <code>values</code>.</p>
  
  <pre><code>inv_dict = {'apples':2, 'oranges':3, 'limes':10, 'bananas':7, 'grapes':4}
  </code></pre>
  
  <p>I've tried using something like <code>enumerate</code> to count the position of the item, and then if it's even, set it as a <code>key</code>.  But then I'm not sure how to match the following number up with it's correct item.</p>