title: Python- How to find missed dictionary item by comparing two dictionary list
body: <p>I am trying to find the missed dictionary element by comparing two dictionary list</p>
  <pre><code>list1=[{&quot;amount&quot;:&quot;1000&quot;,'dept':'marketing',&quot;desig&quot;:&quot;mgr&quot;,'id':'101'},
  {&quot;amount&quot;:&quot;1331&quot;,'dept':None,&quot;desig&quot;:&quot;accnt&quot;,'id':'102'},{&quot;amount&quot;:&quot;1351&quot;,'dept':'mark',&quot;desig&quot;:&quot;sales&quot;,'id':'103'}]
  
  
  list2=[{&quot;amount&quot;:&quot;1500&quot;,'dept':None,&quot;desig&quot;:&quot;mgr2&quot;,'id':'101'},
  {&quot;amount&quot;:&quot;1451&quot;,'dept':'IT',&quot;desig&quot;:&quot;accnt&quot;,'id':'102'}]
  
  difference=[item for item in list1 if item[&quot;id&quot;] not in list2]
  </code></pre>
  <p>but its not giving the expected output for the missed key</p>
  <p>expected output:</p>
  <pre><code>missed={&quot;amount&quot;:&quot;1351&quot;,'dept':'mark',&quot;desig&quot;:&quot;sales&quot;,'id':'103'}
  </code></pre>