Oct-23-2018, 07:27 PM
Oct-23-2018, 08:07 PM
You can also use parenthesis/brackets/braces to imply line continuation (start a multi line)
To be more complete there is also backslash
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.
Oct-24-2018, 04:17 AM
Thanks for answering. I was wondering, are there any multi-line statements that do not require the use of triple quotes or \n?
Oct-24-2018, 11:21 AM
that is multi-line statements without using triple quotes or newline characters.