Triple quoted strings (multiline)


If you would like to create a string that spreads on multiple lines, there is a possibility to put the text between 3 quotes on both sides. Either 2*3 single-quotes or 2*3 double-quotes.

examples/strings/triple_quotes.py
text = """
Joe:        23
Jane:        7
Jacqueline  19
"""

print(text)


Joe:        23
Jane:        7
Jacqueline  19


Can spread multiple lines.


first row
second row
third row