Is there any way in python while iterating through a collection to get the current counter numeric value?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1185545/python-loop-counter-in-a-for-loop">Python loop counter in a for loop</a>  </p>
</blockquote>



<p>I know that I can set up an integer before the loop and increment it together with the loop. </p>

<p>I am asking if there is another way</p>

<p>for example </p>

<pre><code>for object in objects:
    print counter somehow
</code></pre>
