title: Classify list of dictionaries
body: <p>I have two list of dict like below in Python </p>
  
  <pre><code>L1 = [ {"v1":200,"v2":1},{"v1":300,"v2":2},{"v1":400,"v2":3},{"v1":500,"v2":4} ] 
  L2 = [{"v1":200,"v2":1},{"v1":300,"v2":10}]
  </code></pre>
  
  <p>I want to classify them into 3 different list </p>
  
  <pre><code>Rule 1: If L1.V1 == L2.V1 AND L1.V2 == L2.V2 then Identical 
  Rule 2: If L1.V1 not in L2.V1 then New
  Rule 3:  If L1.V1 == L2.V1 AND L1.V2 != L2.V2 then Updated 
  </code></pre>
  
  <p>Below is my code</p>
  
  <pre><code>           for l1 in L1:
                  for l2 in L2:
                      if l1['V1'] == l2['V1']:
                          if l1['V2']  == l2['V2'] :
                              Identicall1.append(l1)
                          elif (l1['V2']  != l2['V2']):
                              updatedl1.append(l1)
                      else:
                          new_l1.append(l1)
  </code></pre>
  
  <p>It is not working as expected. And i found that it is not checking all the values in the L2. </p>
  
  <p><strong>Update:</strong> </p>
  
  <p>Say for example: </p>
  
  <pre><code>1) Consider L1[0] and L2[0] both are same by Rule 1. So i want to push L1[0] into identical list 
  
  2) consider L1[1] and L2[0] since the L1[1].V1 != L2[1].V1 skip and move to next in L2
     Compare L2[1] with L1[1] in this case L1[1].V2 != L2[1].V2 so by Rule 2 push this L1[1] into Update list 
  
  
  3) L1[2].v1 and L1[3].v1 are not in L2 so push to new list 
  </code></pre>
  
  <p>Can any one help me. Thanks, </p>
  
  <p><strong>Update</strong> </p>
  
  <p><strong>Input</strong> </p>
  
  <pre><code>L1 = [ {"v1":200,"v2":1},{"v1":300,"v2":2},{"v1":400,"v2":3},{"v1":500,"v2":4} ] 
      L2 = [{"v1":200,"v2":1},{"v1":300,"v2":10}]
  </code></pre>
  
  <p><strong>O/p</strong> </p>
  
  <pre><code>new_l1= [{"v1":400,"v2":3},{"v1":500,"v2":4} ]
  Update =[{"v1":300,"v2":2}]
  Identical =[{"v1":200,"v2":1}]
  </code></pre>