Lists into Strings..?

tefol tefol at This.Is.Not.An.Address
Wed Aug 29 15:49:21 EDT 2001


Hiya!

I am wondering of the best* way to make string equal to an entire list of 
strings.

>>> lExistingList = ['spam','Spam','SPAM','bacon','Bacon']
>>> sNewString = lExistingList

just doesn't seem to do it.

I know that I can write the list out to a file, and then read the whole 
file in,   but that seems like so much overkill to me.

Thanks heaps!

tefol

*I let you define best anyway you like.  That seems to be the Python way.  
:-)

Cha!



More information about the Python-list mailing list