Array of Chars to String

Alexander Schmolck a.schmolck at gmx.net
Tue Apr 19 16:42:18 EDT 2005


James Stroud <jstroud at mbi.ucla.edu> writes:

> But this seems ugly. I especially don't like "newstr += lttr" because it makes 
> a new string every time. I am thinking that something like this has to be a 
> function somewhere already or that I can make it more efficient using a 
> built-in tool.

"".join

'as



More information about the Python-list mailing list