![]() |
|
|
+ Search |
![]()
|
Jun 24th, 2002 06:25
Michael Chermside,
I have a list of strings (or characters), how do I join it into one large string? >>> aList = ['a','b','c','def'] >>> import string >>> string.join( aList, '' ) 'abcdef' Or, if you can avoid doing the import by simply using the method of an empty string: >>> ''.join( aList ) 'abcdef'