title: Comparing two 2-Dimensional lists
body: <p>I was wondering how I would compare two 2-dim lists by their location. For instance, I have two 2-dim lists with 0's and 1's ,and I want to create a function that would return True if a 1 is in the same location in both lists.</p>
  
  <pre><code>List1=[[0,0,0],
         [1,0,0],
         [0,0,1]]
  
  List1=[[0,0,0],
         [1,0,0],
         [0,0,0]]
  </code></pre>
  
  <p>Here is what I started with, but I am not sure how to continue. </p>
  
  <pre><code>def collide(a,b):
      for x in range(3):
          for y in range(3):
  collide(List1, List2)
  </code></pre>
  
  <p>Any hints? I was thinking </p>
  
  <pre><code>if a[x][y]==1 and b[x][y]==1:
      return True
  </code></pre>
  
  <p>but that probably isn't correct.</p>