You are not putting a "
before the end of the line.
Use """
if you want to do this:
""" a very long string ......
....that can span multiple lines
"""
More Related Contents:
- Possible to make custom string literal prefixes in Python?
- How do I concatenate items in a list to a single string?
- Check if multiple strings exist in another string
- Fast punctuation removal with pandas
- How to use string.replace() in python 3.x
- Converting integer to string in Python
- Create nice column output in python
- Checking whether a string starts with XXXX
- Find the nth occurrence of substring in a string
- Stripping non printable characters from a string in python
- How can I check if character in a string is a letter? (Python)
- rreplace – How to replace the last occurrence of an expression in a string?
- Convert integer to string in Python
- How to remove square bracket from pandas dataframe
- subprocess “TypeError: a bytes-like object is required, not ‘str'”
- How does the max() function work on list of strings in python?
- Removing control characters from a string in python
- How can I extract keywords from a Python format string?
- Converting a string that represents a list, into an actual list object
- How to search if dictionary value contains certain string with Python
- How to concatenate (join) items in a list to a single string
- How do I wrap a string in a file in Python?
- How can I use f-string with a variable, not with a string literal?
- Using Python’s Format Specification Mini-Language to align floats
- How to get an expression between balanced parentheses
- Parsing json and searching through it
- f.read coming up empty
- Extract string from between quotations
- How to join two string with a new line between them?
- Why do I get “TypeError: not all arguments converted during string formatting” trying to check for an even/odd number?