title: Output similarities found in two list
body: <p>Two questions.
  1.My code contain two list</p>
  
  <pre><code>ListA = [[3, 5], [4, 4], [4, 5], [4, 6], [5, 3], [5, 4], [5, 5], [5, 6], [5, 7], [6, 4], [6, 5], [6, 6], [7, 5]]
  
  ListB =[[0, 4], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [2, 2], [2, 3], [2, 4], [2, 5], [2, 6], [3, 1], [3, 2], [3, 3], [3, 4], [3, 5], [3, 6], [3, 7], [4, 2], [4, 3], [4, 4], [4, 5], [4, 6], [5, 2], [5, 3], [5, 4], [5, 5], [5, 6], [6, 4]]
  </code></pre>
  
  <p>I want it to output the similarities found between the two list:</p>
  
  <pre><code>[[3,5][4,4][4,5][4,6][5,3][5,4][5,5][5,6][6,4]]
  </code></pre>
  
  <p><code>print(set(ListA]).intersection(ListB]))</code> didn't work. Any other solutions?</p>
  
  <p>2.
  I would also like it to output the numbers that are similar in index[0] of each brackets of two number found in both list.</p>
  
  <p><code>ListA</code> contain <code>[3,5][4,4][5,3][6,4]</code>
  <code>ListB</code> contain <code>[3,1][4,2][5,2][6,4]</code></p>
  
  <p>Since <code>3,4,5,6</code> is found in index[0] (Or first number) of each bracket, the output would be.</p>
  
  <pre><code>[3,4,5,6]
  </code></pre>
  
  <p>How would I do that?</p>