"Opposite" of splitting?

Jan Danielsson jan.danielsson at gmail.com
Sun Jun 5 19:10:05 EDT 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