# a look at multiline strings
# using line continuation (\) to form one long/multiline string
# complex and tough to read
# (no space right after \ or an empty line following \)
str1 = "The alien gasps and says, 'Oh, this is it. I will die! \n\
Tell my 2.4 million larvae that I loved them... \n\
Good-bye, cruel universe.' "
# using line continuation (\) to combine three strings to one string
# ignores indentations between strings, easy on the eye
str2 = "The alien gasps and says, 'Oh, this is it. I will die! \n"\
"Tell my 2.4 million larvae that I loved them... \n"\
"Good-bye, cruel universe.'"
# using just triple quotes, still tough to read?
# note: newline characters are taken care of
str3 = """The alien gasps, 'Oh, this is it. I will die!
Tell my 2.4 million larvae that I loved them...
Good-bye, cruel universe.' """
# using line continuation (\) and triple quotes
# might be easier to read
str4 = \
"""The alien gasps and says, 'Oh, this is it. I will die!
Tell my 2.4 million larvae that I loved them...
Good-bye, cruel universe.' """
# note: indentations become part of the string
str5 = """The alien gasps, 'Oh, this is it. I will die!
Tell my 2.4 million larvae that I loved them...
Good-bye, cruel universe.' """
# gee, one more way to do a multiline string with the + concatinator ...
str6 = "The alien gasps and says, 'Oh, this is it. I will die! \n"
str6 = str6 + "Tell my 2.4 million larvae that I loved them... \n"
str6 = str6 + "Good-bye, cruel universe.'"
# another variation using +
str7 = "The alien gasps and says, 'Oh, this is it. I will die! \n"
str8 = "Tell my 2.4 million larvae that I loved them... \n"
str9 = "Good-bye, cruel universe.'"
str10 = str7 + str8 + str9
print '-'*60 # pretty up with 60 dashes
print str1
print '-'*60
print str2
print '-'*60
print str3
print '-'*60
print str4
print '-'*60
print str5
print '-'*60
print str6
print '-'*60
print str10