title: Finding all dictionary that meets the parameter of a sub-dictionary in Python
body: <p>I have a Python list called <code>data</code> and a Python dictionary called <code>search_parameter</code>. My question is how do I get a python program to return the dictionary in data that meets the details in search_parameter. I'm using python3.9 if it helps. Thanks in advance for any help.</p>
  <p>data</p>
  <pre><code>[
      {
          &quot;id&quot;: &quot;GXnWSLFa&quot;,
          &quot;firstname&quot;: &quot;John&quot;,
          &quot;lastname&quot;: &quot;Doe&quot;,
          &quot;email&quot;: &quot;johndoe@email.com&quot;,
          &quot;contact&quot;: &quot;91111111&quot;,
          &quot;mmp&quot;: 49.9
      },
      {
          &quot;id&quot;: &quot;ivVpvA8X&quot;,
          &quot;firstname&quot;: &quot;Alan&quot;,
          &quot;lastname&quot;: &quot;Smith&quot;,
          &quot;email&quot;: &quot;alansmith@email.com&quot;,
          &quot;contact&quot;: &quot;81111111&quot;,
          &quot;mmp&quot;: 19.9
      }
  ]
  </code></pre>
  <p>search_parameter</p>
  <pre><code>{
      &quot;firstname&quot;: &quot;John&quot;,
      &quot;lastname&quot;: &quot;Doe&quot;
  }
  </code></pre>