line break in python code example
Example 1: line break in python code
a = '1' + '2' + '3' + \
'4' + '5'
#preferred by style guide
a = ('1' + '2' + '3' +
'4' + '5')
Example 2: python new line
print("First Line \n" "Second Line")
Example 3: break a line python
a = '1' + '2' + '3' + \
'4' + '5'
Example 4: break line in string python
myString = '1X2X3X'
print (myString.replace ('X', 'X\n'))
Example 5: python continue to a new line
a = "This" + " is" + " a" + \
" multi-line" + " statement"