title: Python - AttributeError: 'str' object has no attribute 'isDigit'
body: <p>Here is my code </p>
  
  <pre><code>input = raw_input("Please enter a number")  
  print input.isDigit()
  </code></pre>
  
  <p>when I feed in the input, 7 into the interpreter it throws the error: </p>
  
  <pre><code>AttributeError: 'str' object has no attribute 'isDigit'
  </code></pre>
  
  <p>This makes no sense since <code>isDigit</code> is a built in function and is for strings. I am using python 2.7 and I am using JetBrains Pycharm so could it be the IDE I'm using?</p>