how to write multiple lines in python code example
Example 1: python how to write code over multiple lines
a = '1' \
+ '2' \
+ '3' \
- '4'
Example 2: python make return on multiple lines
# Python return on multiple lines with '()'
# Instead of:
return <something to return> + <something else to return>
# Use:
return (<something to return> +
<something else to return>)
Example 3: python continue to a new line
a = "This" + " is" + " a" + \
" multi-line" + " statement"