"Opposite" of splitting?

Jan Danielsson jan.danielsson at gmail.com
Mon Jun 6 01:10:05 CEST 2005


Hello all,

I have a list of integers:

q = [ 1, 2, 4, 7, 9 ]

which I would like to convert to a string:

"1,2,4,7,9"

   This is *very* easy to do with a simple while loop.. But I suspect
that there is a more elegant way to do it in Python. Is there? If so: How?



More information about the Python-list mailing list