title: Python xrange with float
body: <p>Beginner programmer here.</p>
  
  <p>Is there a way to use float values within the bounds of xrange as well as the step value? I have seen a few solutions for stepping with a float but not for the actual bounds.</p>
  
  <p>Essentially I would like to create a loop that steps down like this:</p>
  
  <pre><code>for x in xrange(5.5,0,0.1):
       print x
  </code></pre>
  
  <p>I was thinking of determining the difference between my two boundaries, dividing it by the step value to determine the number of steps needed and then inputting this as an integer value into the xrange function - but is there an easier way?</p>
  
  <p>Thank you!</p>