title: How do I check if raw input is integer in python 2.7?
body: <p>Is there a method that I can use to check if a <code>raw_input</code> is an integer?</p>
  
  <p>I found this method after researching in the web: </p>
  
  <pre><code>print isinstance(raw_input("number: ")), int)
  </code></pre>
  
  <p>but when I run it and input <code>4</code> for example, I get <code>FALSE</code>.
  I'm kind of new to python, any help would be appreciated. </p>