Multiline strings and indentation

bragib at my-deja.com bragib at my-deja.com
Mon Jul 17 16:28:34 EDT 2000


Can't you do someting like this.
def multiline(x):
    if x:
         print "this is a"\
               " multi-line string that spans"\
               " three lines"
         print "another string"



Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list