print without newline

Eckhard Pfluegel Eckhard at pfluegel.fsnet.co.uk
Fri Jun 9 10:47:30 EDT 2000


I want to print a string without a newline afterwards. The command

print "foo",

doesn't print a newline but prints a trailing space, which is not what I
want (I wnat *nothing* after the string). I tried the formated output

print "%s" % ("foo")

but this prints a newline as well.

I use Python 1.5.2 on Linux.

Does anybody have an idea? Thanks very much in advance.

Eckhard







More information about the Python-list mailing list