title: how to save results of two statement without defining extra array
body: <p>I am comparing two arrays in python with if statement and elif statement, results should be saved in an other array, to avoid overwriting, I am using append., but I have to save results of these two statement without adding third array!
  How I can append results of if statement to elif statement, with adhere to sequence of occurrence and without defining another array!</p>
  
  <pre><code>a = [[[1,20],[2,20],[3,20],[4,20],[5,20],[7,20],[5,20],[9,20],[11,20]]]
  
  b = [[[1,20],[2,20],[3,20],[4,20],[6,20],[7,20],[8,20],[9,20],[10,20]]]
  
  c = []
  
  
  for i in range(0,len(b)):
  
   for j in range(0,len(b[i])):
  
        if a[i][j][0] == b[i][j][0]:
  
             c.append(b[i][j])
  
        elif a[i][j][0] == 5:
  
              c.append(b[i][j]) 
   print c
  </code></pre>
  
  <p>In this code I defined array "c" to save results of if statement and elif statement, but I need to append results of if statement to elif statement, without defining array c, and be able to make a print below elif!
  can someone help me to solve this issue!?</p>