Python: Triple Quote String
Triple Quote (For Multi-Line String)
Triple Quote string is a string syntax with 3 quote delimiters on each side, e.g.
"""triple quoted string with QUOTATION MARK delimiter"""
'''triple quoted string with APOSTROPHE delimiter'''
- Allows literal newline character
- Backslash has special meaning. See String Escape Sequence
xx = """dog cat bird""" yy = '''dog cat bird''' print(xx == yy) # True print(xx) # dog # cat # bird
Python, String
- Python: Quote String
- Python: Triple Quote String
- Python: String Escape Sequence
- Python: Unicode Escape Sequence
- Python: String Prefix Character (u f r b)
- Python: Raw String (r-prefix)
- Python: f-String (Format, Template)
- Python: Print
- Python: Join String
- Python: Format String (Convert to String)
- Python: String Operations and Methods
- Python: Search Substring
- Python: Split String
- Python: String, Check Case, Char Class
- Python: Letter Case Conversion
- Python: Unicode 🐍
- Python 2: Unicode Tutorial