Python: Triple Quote String

By Xah Lee. Date: . Last updated: .

Triple Quote (For Multi-Line String)

Triple Quote string is a string syntax with 3 quote delimiters on each side, e.g.

xx = """dog
cat
bird"""

yy = '''dog
cat
bird'''

print(xx == yy)
# True

print(xx)
# dog
# cat
# bird

Python, String