def is_number(n):
 return (type(n) in (IntType, LongType, FloatType))

def is_number ( n ) : return ( type ( n ) in ( IntType , LongType , FloatType ) )
determines if it is a number or not returns: type .