title: How can I compare two ordered lists in python?
body: <p>If I have one long list: <code>myList = [0,2,1,0,2,1]</code> that I split into two lists:</p>
  
  <pre><code>a = [0,2,1]
  b = [0,2,1]
  </code></pre>
  
  <p>how can I compare these two lists to see if they are both equal/identical, with the constraint that they have to be in the same order?</p>
  
  <p>I have seen questions asking to compare two lists by sorting them, but in my specific case, I am not checking for a sorted comparison, but identical list comparison.</p>