Uploaded July 2024 | Updated September 2026, 3 weeks ago
How to split a statement across multiple lines using Python. Explicit line joining using the line continuation character \ is discussed, as well as implicit line joining using expressions with parenthesis, square brackets and curly braces, and defining strings across multiple lines with \ and docstrings (triple quote strings). Source code: github.com/portfoliocourses/python-example-code/blob/main/multiline_statements.py. Check out portfoliocourses.com to build a portfolio that will impress employers!
How to split a statement across multiple lines using Python. Explicit line joining using the line continuation character \ is discussed, as well as implicit line joining using expressions with parenthesis, square brackets and curly braces, and defining strings across multiple lines with \ and docstrings (triple quote strings). Source code: github.com/portfoliocourses/python-example-code/blob/main/multiline_statements.py. Check out portfoliocourses.com to build a portfolio that will impress employers!










