Summary
In Python, a backslash ( \ ) is a line continuation character which allows a long string to be written on multiple lines.
1
Also, multiple string literals written sequentially are concatenated into one string.
1
This is done by placing a backslash at the end of the line to indicate that the line is continued on the next line.
1
According to
See more results on Neeva
Summaries from the best pages on the web
Summary
In Python, a backslash ( \ ) is a line continuation character. If a backslash is placed at the end of a line, it is considered that the line is continued on the next line.
source: long_string.py
Also, if multiple string literals are written sequentially, they are concatenated into one string
Write a long string on multiple lines in Python | note.nkmk.me
nkmk.me
There are 2 main methods that can be used for line continuation in Python. ... We broke down a long line of strings into two smaller and easy-to-read lines ...
Line Continuation in Python | Delft Stack
delftstack.com
How to wrap long lines in Python - A string is a collection of characters that can ... Using Python's inferred line continuation within parentheses, brackets, ...
How to wrap long lines in Python
tutorialspoint.com
Rhinoceros 3D: This guide presents an overview of Python syntax. ... To make it more apparent that line 2 is a continuation of line 1, line 2 is also indented ...
Rhino - Python Basic Syntax
rhino3d.com
The line continuation operator, \ can be used to split long statements over multiple lines. Here is how we could split the above statement using \ instead:
Breaking long lines in Python
doingmathwithpython.github.io