Check if a number is int or float
Here's how I did it: inNumber = somenumber inNumberint = int(inNumber) if inNumber == inNumberint: print "this number is an int" else: print "this number is a float" Something like that. ...