Re: opposite function to split?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: opposite function to split?

From: Robin Becker <robin@NOSPAMreportlab.com>
Date: Sat Apr 29 2006 - 20:12:08 CEST

randomtalk@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
Received on Mon May 1 00:44:35 2006