title: why cant we put a decimal in the for range in python
body: <p>For example, I put this:</p>
  
  <p>for i in range (2,n**0.5+1,2):</p>
  
  <pre><code>      print(i)
  </code></pre>
  
  <p>And it doesn't work. I tried putting 1/2 instead but it didn't work 
  I have python 3.6</p>