Look at the below code:
inNumber = somenumber
inNumberint = int(inNumber)
if inNumber == inNumberint:
print "this number is an int"
else:
print "this number is a float"
Something to that effect.
Are there any more pleasant-looking approaches to do this?