470,810 Members | 865 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,810 developers. It's quick & easy.

opposite function to split?

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!

Apr 29 '06 #1
1 21216
ra********@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
Apr 29 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Arjen | last post: by
reply views Thread by j | last post: by
9 posts views Thread by pranav.choudhary | last post: by
5 posts views Thread by sck10 | last post: by
6 posts views Thread by Dasn | last post: by
16 posts views Thread by pereges | last post: by
1 post views Thread by John | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.