Counting item number in Python 'for'?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2894323/for-x-in-y-type-iteration-in-python-can-i-find-out-what-iteration-im-currentl">for x in y, type iteration in python. Can I find out what iteration I&#39;m currently on?</a><br>
  <a href="http://stackoverflow.com/questions/8590810/iteration-count-in-python">Iteration count in python?</a>  </p>
</blockquote>



<p>Kind of hard to explain, but when I run something like this:</p>

<pre><code>fruits = ['apple', 'orange', 'banana', 'strawberry', 'kiwi']

for fruit in fruits:
    print fruit.capitalize()
</code></pre>

<p>It gives me this, as expected:</p>

<pre><code>Apple
Orange
Banana
Strawberry
Kiwi
</code></pre>

<p>How would I edit that code so that it would "count" the amount of times it's performing the <code>for</code>, and print this?</p>

<pre><code>1 Apple
2 Orange
3 Banana
4 Strawberry
5 Kiwi
</code></pre>
