title: How to check if string input is a number?
body: <p>How do I check if a user's string input is a number (e.g. <code>-1</code>, <code>0</code>, <code>1</code>, etc.)?</p>
  
  <pre><code>user_input = input("Enter something:")
  
  if type(user_input) == int:
      print("Is a number")
  else:
      print("Not a number")
  </code></pre>
  
  <p>The above won't work since <code>input</code> always returns a string.</p>