title: How do I create a dictionary with keys from a list and values defaulting to (say) zero?
body: <p>I have <code>a = [1,2,3,4]</code> and I want <code>d = {1:0, 2:0, 3:0, 4:0}</code></p>
  
  <pre><code>d = dict(zip(q,[0 for x in range(0,len(q))]))
  </code></pre>
  
  <p>works but is ugly. What's a cleaner way?</p>