Multi-Line Statements in the python
Categories: Python
Statements inPython typically end with a new line. Python does, however, allow theuse of the line continuation character (\) to denote that the lineshould continue. For example −
total = item_one +\
item_two +\
item_three
Statementscontained within the [], {}, or () brackets do not need to use theline continuation character. For example −
days = ['Monday','Tuesday', 'Wednesday',
'Thursday', 'Friday']