line continuation inpython code example
Example 1: python how to write code over multiple lines
a = '1' \
+ '2' \
+ '3' \
- '4'
Example 2: python continue to a new line
a = "This" + " is" + " a" + \
" multi-line" + " statement"
a = '1' \
+ '2' \
+ '3' \
- '4'
a = "This" + " is" + " a" + \
" multi-line" + " statement"