Concatenating strings

John Henry john106henry at hotmail.com
Fri Jun 30 23:33:51 EDT 2006


Sorry if this is a dumb question.

I have a list of strings (some 10,000+) and I need to concatenate them
together into one very long string.  The obvious method would be, for
example:

alist=["ab","cd","ef",.....,"zzz"]
blist = ""
for x in alist:
   blist += x

But is there a cleaner and faster way of doing this?

Thanks,




More information about the Python-list mailing list