Posted By

silviud on 05/11/11


Tagged

list python String to


Versions (?)

List to string separated by comma


 / Published in: Python
 

  1. L = [1,2,3,4,5]
  2. s1 = ','.join(str(n) for n in L)
  3. s1
  4. '1,2,3,4,5'

Report this snippet  

You need to login to post a comment.