opposite function to split?

Robin Becker robin at NOSPAMreportlab.com
Sat Apr 29 14:12:08 EDT 2006


randomtalk at gmail.com wrote:
> hello everyone! I can't seem to find a function that combines a list of
> items into a string with a seperator between the individual elements..
> Is there such a method that does the opposite of sting.split? thanks
> alot!
> 
join is your answer

','.join(['a','b','c']) == 'a,b,c'

-- 
Robin Becker



More information about the Python-list mailing list