You can also use parenthesis/brackets/braces to imply line continuation (start a multi line)
var = (
'some long string'
'that just keeps going'
'and going'
)
Output:
some long stringthat just keeps goingand going
Dont add commas otherwise you created a tuple.
Quote:Output:
('some long string', 'that just keeps goingand going')
('some long string', 'that just keeps going', 'and going')
To be more complete there is also backslash
var = 'some long string' \
'that just keeps going' \
'and going'
I still prefer triple quotes though because then you dont need quotes on each line which could be add or removed at any time making more work. Also it is less keystrokes. I also hate the appearance of backslash.