title: How do I loop over dictionary and check for values passed by a variable in Python
body: <p>I've got the below dictionary and list - how do I loop over the dictionary checking if <code>b == '1'</code> while passing <code>'1'</code> as variable from a list? </p>
  
  <pre><code>dic = {'info': [{'a':0, 'b':'1'},{'a':0, 'b':'3'},{'a':0, 'b':'3'},{'a':0, 'b':'1'}]}
  
  lst = ['1']
  </code></pre>
  
  <p>I want to return <code>{'a':0, 'b':'1'}, {'a':0, 'b':'1'}</code>.</p>