Python!Just out of curiosity can anyone name a language which does not use an end of line character and allows multiple lines of text across several lines?
Code: Select all
normalstring = "I'm a string" #string in normal quotes
anothernormalstring = 'Me too!' #string in single quotes, less "noise"
aVeryLongString = """This String starts here and
continues her in the next line.
Ah, the string does not end here! I'ts going on and on. Since it's triple-quoted,
I can use normal "quotes" here and 'here'!
Cool!"""
# Statement over several lines:
myList = (for thing in thinglist \
if thing == "list comprehension")
# Joined statements:
print mylist : print "done"