title: Python range function
body: <p>Say I want to loop from 0 to 100 but with a step of 1/2.  If you try</p>
  
  <pre class="lang-py prettyprint-override"><code>for i in range(0, 100, 0.5):
      whatever
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <blockquote>
    <p>the step must not be 0</p>
  </blockquote>
  
  <p><strong>Question:</strong>
  Is there any built-in way in Python 2.x to do something like this?</p>