title: Do we have some inbuild function in python 2.7.9 which gets input both in integer & string using same function
body: <p>I am using python 2.7.9 and also i am new to stack overflow.</p>
  
  <p><code>input()</code> is used for getting integer as input from user.<br>
  <code>raw_input()</code> is used for getting string as input from user.</p>
  
  <p>I am looking for some common function in python 2.7.9 which will allow user to input either integer or string based up on user wish</p>
  
  <p>I am using below code:</p>
  
  <pre><code>A=input("Enter a String")
  
  Error:
  Traceback (most recent call last):
    File "C:/Users/eubcefm/Desktop/Important/Python/2407/Test.py", line 1, in &lt;module&gt;
      A=input("Enter a String")
    File "&lt;string&gt;", line 1, in &lt;module&gt;
  NameError: name 'And' is not defined
  </code></pre>