>>> # formatted printing ... >>> # you can use \t \n to make a table ... >>> print 'one\ttwo\nthree\tfour' one two three four >>> x = 54.3333333333 >>> i = 4 >>> st = "hello there bear" >>> print "i=",i,"and x=",x,"and st=",st i= 4 and x= 54.3333333333 and st= hello there bear >>> #print string with placeholders % (variables to fill them in) ... >>> # %s for strings ... >>> # %d for ints ... >>> # %f for floats ... >>> print "i=%d and x=%f and st=%s" % (i,x,st) i=4 and x=54.333333 and st=hello there bear >>> print "i=%d and x=%.2f and st=%s" % (i,x,st) i=4 and x=54.33 and st=hello there bear >>> print "i=%d and x=%.3f and st=%s" % (i,x,st) i=4 and x=54.333 and st=hello there bear