Language Syntax
Line joining — Python syntax
Continue a logical line across physical lines using parentheses, brackets or braces, or a terminal backslash outside a string or comment. Implicit continuation permits comments; explicit continuation cannot have a trailing comment.
Formal Syntax & Structure
python syntaxpython
total = (first + second)# Or explicit continuation:total = first + \ secondWorking Example
Example Snippetpython
total=(2 + 3)other=4 + \ 5print((total,other))