Print whithout \n

Alex Martelli aleaxit at yahoo.com
Tue Dec 12 07:05:37 EST 2000


"Henrik Mårtensson" <henrik.martensson at frontconsulting.se> wrote in message
news:aboZ5.3538$Kd1.410322 at newsb.telia.net...
> Hi
>
> How do you print a string whithout a linefeed in the end.

With a trailing comma on the print statement:

    print "no linefeed here",
    print "nor here","here neither",


Alex






More information about the Python-list mailing list