title: for loop in python with decimal number as step
body: <p>I want to make a for loop that looks like this:</p>
  
  <pre><code>for x in range(0, 1, 0.1):
      print(x)
  </code></pre>
  
  <p>obviously it throws this error: </p>
  
  <blockquote>
    <p>Traceback (most recent call last):
      File "", line 1, in 
        for i in range(0, 1, 0.1):
    TypeError: 'float' object cannot be interpreted as an integer</p>
  </blockquote>
  
  <p>So it there a way in python 3.6 to make a for loop with floating point?</p>