newbie question: convert a list to one string

Sion Arrowsmith siona at
Thu Aug 25 11:55:13 CEST 2005

 <martijn at> 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 --
  ___  |  "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