title: How do I compare a string and an integer in Python?
body: <p>I am quite a newbie in Python.
  I wrote this and got this error when i typed a letter in the input:</p>
  
  <pre><code>TypeError: unorderable types: str() &gt;= int()
  </code></pre>
  
  <p>Here is the code that I wrote:</p>
  
  <pre><code>user_input = input('How old are you?: ')
  if user_input &gt;= 18:
     print('You are an adult')
  elif user_input &lt; 18:
       print('You are quite young')
  elif user_input == str():
       print ('That is not a number')
  </code></pre>