[Tutor] Printing Multiple Objects, no spaces

Gerrit Holl gerrit.holl@pobox.com
Mon, 20 Sep 1999 15:25:19 +0200


Sean Conway:
> Hello all.
> 
> I need to print multiple objects, without spaces in between. This method
> doesn't work:
> 
> print foo, foobar
> 

Several way:

print "%s%s" % (foo, foobar)
print foo + foobar
sys.stdout.write(foo); sys.stdout.write(foobar)
sys.stdout.write(foo+foobar)

regards,
Gerrit.
-- 
RTFM: Read That FreshMeat