title: brand new to python - silly/obvious question
body: <p>I am brand new to coding and trying to learn Python.  I cannot work out how to code an elif statement such that if the variable is an integer there is a certain output, but if it is not an integer then something else is printed.  I keep getting an error.  I am trying to write a program that can analyse the variable &quot;x&quot; and if x is a number it will print saying it is below 2 or 2 or more, but if x is anything else including a string, it will print &quot;something else&quot;</p>
  <pre><code>x = 2
  if x &lt; 2:
      print(&quot;Below 2&quot;)
  elif x &gt;= 2:
      print(&quot;Two or more&quot;)
  else:
      print(&quot;Something else&quot;)
  
  x = world
  
  if x &lt; 2:
      print(&quot;Below 2&quot;)
  elif x &gt;= 2:
      print(&quot;Two or more&quot;)
  else:
      print(&quot;Something else&quot;)
  </code></pre>