[Tutor] print function

Guillermo Fernandez guillermo.fernandez@epfl.ch
Wed, 17 Jul 2002 16:04:22 +0930


Hi!

I would like to make a print. There is, of course, the print function,
but this one automatically add a '\n' at the end of the line. Is there a
way to avoid this behaviour?

I would like to do something like:

print "first fct"
fct1()
print " second fct"
fct2()
print " third fct"
fct3()

and have an output like:
"first fct second fct third fct"

I've searched through the library reference, but I did not find any
function that allows me to do that.

I'm using Python 2.0

Thanks!

Guille