newbie question: convert a list to one string
Sion Arrowsmith
siona at chiark.greenend.org.uk
Thu Aug 25 05:55:13 EDT 2005
<martijn at gamecreators.nl> wrote:
>I'm searching for the fastest way to convert a list to one big string.
The join() method of strings. The string instance in question being
the separator you want, so:
" ".join(test)
--
\S -- siona at chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
___ | "Frankly I have no feelings towards penguins one way or the other"
\X/ | -- Arthur C. Clarke
her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump
More information about the Python-list
mailing list