Is there some way to make sure that the raw_input is only non-numeric?
<p>I want to make sure that the user enters the input in the correct format and i do know how to make sure its numeric input but i dont understand how to make sure its not numeric input.</p>

<pre><code>x = raw_input('What is your name? ')
y = raw_input('What is your age? ')
try:
    something_to_make_sure_its_not_numeric(x)
    int(y)
    print "Hello {0}, You look very handsome for someone who is {1}.".format(x, y)
except:
    print('please enter input in correct format')
</code></pre>

<p>y question is that is there some function in python like int() that makes sure that it only has letters.</p>

<p>Check if its a digit, and take the not of it</p>

<pre><code>if x.isdigit():
           print_error
else:
</code></pre>

<p>Or use </p>

<pre><code>x.isnumeric()
</code></pre>

python python-2.7