convert a list to a string?
antonyliu2002 at yahoo.com
Fri Mar 4 04:15:05 CET 2005
Oh, yes, that's a cool function! I did that before but
Thanks a lot!
--- Tony Meyer <t-meyer at ihug.co.nz> wrote:
> > Suppose I have a list
> > myList = ["this", "is", "a", "sample", "list"]
> > If I don't want to iterate through it and
> > the list elements, how do I easily convert it to a
> > string like
> > "this is a sample list"
> " ".join(myList)
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
More information about the Python-list