Is there a way to see if two lists are the exact same without looping in python?
<p>Say I have:</p>

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

<p>is there a way to test the lists to see if they are the same, without having to loop through each entry?</p>

<p>Here's what I was thinking..I know to check if two variables are the same I could use:</p>

<pre><code>id(a)
</code></pre>

<p>but it doesn't work because the ID's are different so is there some type of checksum or way that python stores values of the table so I can simply compare two variables?</p>
