How avoid both a newline and a space between 2 print commands?
Diez B. Roggisch
deets at nospam.web.de
Wed Jan 23 09:12:29 EST 2008
seberino at spawar.navy.mil wrote:
> print "foo"
> print "bar"
>
> has a newline in between "foo" and "bar"
>
> print "foo",
> print "bar"
>
> has a space in between "foo" and "bar"
>
> How prevent ANYTHING from going in between "foo" and "bar" ??
>
> (Without defining a string variable.)
sys.stdout.write("foo")
sys.stdout.write("bar")
Diez
More information about the Python-list
mailing list