title: Can't iterate through range if there is another element on the loop to iterate. Why is that?
body: <p>Here is my code. I'm doing a puzzle and need the index of the second zipped element, but since <code>goals2.index(j)</code> only returns the first occurrence, I tried to use a range which iterates at the same time:</p>
  <pre class="lang-py prettyprint-override"><code>def best_match(goals1, goals2):
      a = [goals1[0] - goals2[0], 0, goals2[0]]
      for (i, j), k in zip(goals1, goals2), range(len(goals2)):
          if i - j &lt; a[0]:
              a[0] = i - j
              a[1] = k
              a[2] = j
          if i - j == a[0] and j &gt; a[2]:
              a[1] = k
              a[2] = j
      return a[1]
  </code></pre>
  <p>However, when the interpreter reaches the <code>for</code> part of the code, it gives me an error saying that <em><strong>int object is not iterable</strong></em>, when range clearly IS an <code>iterable</code>. It only doesn't work when I iterate multiple values using range as one of the iterators.</p>