title: Python: 'float' object cannot be interpreted as an integer?
body: <p>I am getting an error <code>TypeError: 'float' object cannot be interpreted as an integer</code>in this part of my code. Can someone tell me why am I getting the error and how to fix it?</p>
  <pre><code>for y in range(-x/2, x/2):
      #Some function
  </code></pre>