title: Accessing the value of a zip object using its index
body: <p>I am trying to understand how to access a zip object and I'm trying to figure out how to access the value in the zipped object using the index by using the .index() just as we have it before in Python 2.x but it seemed that it does not work in Python3 </p>
  
  <p>Here is the code</p>
  
  <pre><code>def find_neighbors(index):
      i, j = index
      print([(i + 1, j), (i - 1, j), (i, j + 1), (i, j - 1)])
      return [(i + 1, j), (i - 1, j), (i, j + 1), (i, j - 1)]
  
  list1 = (211,209,210,210)
  list2 = (72,72,73,71)
  points = zip(list1,list2)
  
  for i, index in enumerate(points):
      for x in find_neighbors(index):
            if x is not in points: continue
            j = points.index(x)
  </code></pre>
  
  <p>When I run the code, I am getting this error: AttributeError: 'zip' object has no attribute 'index'</p>
  
  <p>Is there a new way on how to execute this same mechanism</p>