title: range function doesn't work in Python
body: <p>I am super advanced in Python and trying to get this right..
  "Implement a program that requests an integer n from the user and prints on the screen
  the squares of all numbers from 0 up to, but not including, n"</p>
  
  <pre><code>x=input('enter a number:')
  def square(x):
      result=x**2
      return result
  
  for i in range(0,x):
      print(i)
  </code></pre>
  
  <p>What's the problem?</p>