title: Python: range function for decimal numbers
body: <p>Is there any range() function in python for float numbers
  for example</p>
  
  <pre><code>a=0.6
  
  if a in range(0,1):
      a=3
  </code></pre>
  
  <p>How can i implement this?</p>