which is better, string concatentation or substitution?

John Salerno johnjsal at NOSPAMgmail.com
Mon May 8 10:01:33 EDT 2006


Duncan Booth wrote:

> If you build a 
> list of lines to join then you don't have to repeat '\n' on the end of each 
> component line.

How would that work? Wouldn't the last line in the list still need the 
newlines?



More information about the Python-list mailing list