title: Python loop with int iterator
body: <p>I seem to recall there is a built-in way of doing this:</p>
  <pre><code>i = 0
  for value in values:
      # ...Stuff
      i += 1
  </code></pre>
  <p>but in a neater syntax; something like</p>
  <pre><code>for value, i in fn(values):
      # ...Stuff
  </code></pre>
  <p>Is my memory correct; and if so, what is the way of doing this?</p>