title: Referencing a character's position inside a loop with Python
body: <p>How can I write a loop in Python that behaves exactly like this JavaScript loop:</p>
  
  <pre><code>for (i = 0; i &lt; cars.length; i++)
  </code></pre>
  
  <p>That is, I want the variable i to hold the value of the index of the character as I iterate over a string.</p>