Comparing Two Arrays resulting into Third Array
<p>I have two Arrays:</p>

<pre><code>firstArray=[['AF','AFGHANISTAN'],['AL','ALBANIA'],['DZ','ALGERIA'],['AS','AMERICAN SAMOA']]
secondArray=[[1,'AFGHANISTAN'],[3,'AMERICAN SAMOA']]
</code></pre>

<p>So I just need an Array which is like</p>

<pre><code>thirdArray=[[1,'AF'],[3,'AS']]
</code></pre>

<p>I tried <code>any(e[1] == firstArray[i][1] for e in secondArray)</code>
It returned me True and false if second element of both array matches. but i don't know how to build the third array.</p>
