You can import the types and check variables against them:
>>> from types import *
>>> answer = 42
>>> pi = 3.14159
>>> type(answer) is int # IntType for Python2
True
>>> type(pi) is int
False
>>> type(pi) is float # FloatType for Python 2
True
For your more specific case, you would use something like:
if type(variable1) is int:
print "It's an int"
else:
print "It isn't"
Just keep in mind that this is for a variable that already exists as the correct type.
If, as you may be indicating in your comment (if user_input !== "input that is numeric"
), your intent is to try and figure out whether what a user entered is valid for a given type, you should try a different way, something along the lines of:
xstr = "123.4" # would use input() usually.
try:
int(xstr) # or float(xstr)
except ValueError:
print ('not int') # or 'not float'