General question re: print statement

chibaA at TinterlogD.Tcom chibaA at TinterlogD.Tcom
Tue May 9 19:02:01 CEST 2000


Thanks for your quick replies.  I'll give it a shot.

kc

On 09 May 2000 12:47:39 -0400, Justin Sheehy <dworkin at ccs.neu.edu>
wrote:

>chibaA at TinterlogD.Tcom writes:
>
>> The basic point of this code above - is the print<<"(WHATEVER)"; part
>> of it --> whatever is between the (WHATEVER)s, can be free form text
>> which will just be outputted as is (with the spaces, new lines, etc).
>> And I don't have to use escape characters to output reserved
>> characters.
>> 
>> Does anyone know if this is possible - or how to do this in Python?
>
>Use triple quotes.
>
>>>> print """spam
>... eggs
>... spam 
>...   more spam
>... """
>spam
>eggs
>spam
>  more spam
>
>>>> 
>
>-Justin
>
> 
>




More information about the Python-list mailing list