title: Python - Function to check if user input matches a condition
body: <p>I'm writing a script that is asking for user to input a number between 1-10, the script will then call the function <code>Size</code> and will return <code>true</code> if the number is greater or equal to <code>5</code> and <code>false</code> if not. However, I seem to have run into a bit of a wall, I get an error asking me to define x, this is my code currently.</p>
  <pre><code>def Size(x):
      if x &gt;= 5:
          print(&quot;True&quot;)
      else:
          print(&quot;False&quot;)
      x = int(input(&quot;Please enter a number greater than 5&quot;))
  Size(x)
  </code></pre>