title: Count indexes using "for" in Python
body: <p>I need to do in Python the same as:</p>
  
  <pre><code>for (i = 0; i &lt; 5; i++) {cout &lt;&lt; i;} 
  </code></pre>
  
  <p>but I don't know how to use FOR in Python to get the index of the elements in a list.</p>