title: range() for floats
body: <p>Is there a <code>range()</code> equivalent for floats in Python?</p>
  
  <pre><code>&gt;&gt;&gt; range(0.5,5,1.5)
  [0, 1, 2, 3, 4]
  &gt;&gt;&gt; range(0.5,5,0.5)
  
  Traceback (most recent call last):
    File "&lt;pyshell#10&gt;", line 1, in &lt;module&gt;
      range(0.5,5,0.5)
  ValueError: range() step argument must not be zero
  </code></pre>