making a string copy of a list

Serge Rey rey at typhoon.sdsu.edu
Sat Jan 13 10:44:04 EST 2001


--- In python-list at egroups.com, warlock at e... (Jim Richardson) wrote:
> OK, I swear I've looked for this, but how do I make a copy of a
list, into a
> string, complete with commas seperating the entries in the list? 

mylist=['one','two','three']
import string
mystring=string.join(mylist,",")



serge






More information about the Python-list mailing list