newbie question: convert a list to one string

Maciej Dziardziel fiedzia at fiedzia.prv.pl
Thu Aug 25 05:27:30 EDT 2005


martijn at gamecreators.nl wrote:

> H!
> 
> I'm searching for the fastest way to convert a list to one big string.
> 
> For example:
> test = ['test','test2','test3']

'-'.join(test)

-- 
Maciej "Fiedzia" Dziardziel (fiedzia (at) fiedzia (dot) prv (dot) pl)
www.fiedzia.prv.pl

Stewardesses is the longest word that is typed with only the left hand.



More information about the Python-list mailing list