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... ?

29th Aug 2016, 9:07 AM
Jonathan Durrant
Jonathan Durrant - avatar
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
17th Sep 2016, 10:56 PM
Andriy Maletsky
Andriy Maletsky - avatar