Comparing lists in Python
<p>Say I have <code>list1 = [1,2,3,4]</code> and <code>list2 = [5,6,7,8]</code>.  How would I compare the first element, <code>1</code>, in <code>list1</code> with the first element, <code>5</code>, in <code>list2</code>?  And <code>2</code> with <code>6</code>, <code>3</code> with <code>7</code>, and so on.</p>

<p>I'm trying to use a for loop for this, but I'm not sure how to do it. I understand that doing <code>for x in list1</code> just checks an element <code>x</code> to all elements in list1, but I don't know how to do it when comparing two lists the way I described.</p>
