title: How to skip a variable value in eval
body: <p>i have dict and list as bellow</p>
  
  <pre><code>a = {'aaa': 1, 'bbb': 2, 'ccc': 3}
  b = ['aaa', 'bbb', 'ddd', 'eee']
  </code></pre>
  
  <p>I am comparing list <code>b</code> in dict <code>a</code> and I am printing values of <code>'aaa'</code> and <code>'bbb'</code>, I dont know how to store values of <code>aaa=1</code>, <code>bbb=2</code>. I am trying using this code</p>
  
  <pre><code>for i in range(0,len(b)):
      if b[i] not in d:
          continue
      else:
          print int(a[b[i]])
  </code></pre>
  
  <p>its printing </p>
  
  <pre><code>1
  2
  </code></pre>
  
  <p>i want to assign <code>aaa=1,bbb=2,ddd=0,eee=0</code>.</p>
  
  <p>And Then when I print <code>"print aaa,bbb,ccc,ddd"</code> it should print values. The variables in list <code>b</code> can vary, so that I should dynamically assign values which are in <code>b</code> not in a to zero.</p>