indexes in a list
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/8184768/comparing-lists-python">comparing lists python</a>  </p>
</blockquote>



<p>I have 1 original list such as:</p>

<pre><code>original = [1, 2, 3]
</code></pre>

<p>and another list with nested lists (with the same size) such as:</p>

<pre><code>bigList = [[1, 2, 3], [2, 2, 2], [3, 2, 3]...]
</code></pre>

<p>and I want to count how many indexes in each nested list is the same as in the original list.
this is what i wrote:</p>

<pre><code>count= 0
for innerlist in (bigList):
    for indexes in (innerlist):
        for i in (original):
            if indexes == i:
            count= count+1
</code></pre>

<p>The problem is that it will count all the correct places in all the nested lists together, but I want it to count how many correct places are in each nested list.
how should I do it? </p>
