Try this method .isdigit(), see example below.
user_input = raw_input()
if user_input.isdigit():
print "That is a number."
else:
print "That is not a number."
If you require the input to remain digit for further use, you can add something like:
new_variable = int(user_input)