0
What is the best way to create a multi-line string?
I have seen the usage of triple apostrophe's to encapsulate the string , but I've heard that is undesirable... ?
1 Answer
0
several strings divided by space or newline are implicitly concatenated
print(
'str1'
'str2'
)
produces 'str1str2' or 'str1 str2', I don't remember exactly
Also because explicit is better than implicit, you may use + operator for that