What a weird thing !!?

bjorn bjorn at roguewave.com
Fri Feb 18 16:00:42 EST 2000


sys.stdout.write("hel")
sys.stdout.write("lo")

-bjorn

Florent Rami?re wrote:

> Hello,
>
>     here is something i do not understand ...
>
>     Let's say i want to write two strings which must display "HELLO"
>     2 solutions to this problem:
>     print "HEL" + "LO"
>
>     or
>     print "HEL",
>     print "LO",
>
>     But this last solutions does not work !! Python inserts a white space
> !?
>
>     I wanted "HELLO", python give me "HEL LO" !!!!
>
>     I certainly have missed something, could you help me on this ?
>
> Thanks for reading this .
> Florent.
> --
> ----
> Florent Ramière framiere at netcom-service.com
> Netcom http://www.netcom-service.com
> 15, rue de Rémusat - 75016 Paris
> Tel : 06-60-61-85-32 ---  Fax : 01-42-30-50-55
>
> --
> http://www.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list