string->list->string

Stephen Hansen news at myNOSPAM.org
Tue Apr 24 00:48:02 EDT 2001


Or, in Py2.0, the rather uncute:

"".join(l)

:)

--Stephen
(replace 'NOSPAM' with 'seraph' to respond in email)

"Douglas Alan" <nessus at mit.edu> wrote in message
news:lcwv8bgjcf.fsf at gaffa.mit.edu...
> Courageous <jkraska1 at san.rr.com> writes:
>
> > Not getting it: I want
>
> > s = "abc"
> > l = list(s)
> > <something>(l)
> > "abc"
>
> import string
> string.join(l, "")
>
> |>oug





More information about the Python-list mailing list