Paul Rubin wrote: > [EMAIL PROTECTED] writes: > > i tried using type(var) but that only seemed to produce a response in the > > command line. > > > > is there a built in python function to determine if a variable is an > > integer? > > type(var) returns the type. For example: > > if type(x) == type(3): > print 'x is an integer'
or x = 5 isinstance(x, int) True BranoZ -- http://mail.python.org/mailman/listinfo/python-list