title: Python How to check if user input is a string?
body: <p>My first question on here...</p>
  
  <p>I want to know how to check if the user input is a string.  If it is not a message should appear.  Otherwise the answer should be accepted.  Here is what I have (I am looking for the simplest fix please):</p>
  
  <pre><code>try:
      name=str(raw_input("What is your name? "))
  except:
      print("Your name must consist of letters only")
  else:
      print("Thank you for entering your name.")
  </code></pre>