| 1 | initial version |
I will assume your list consists of strings. You can build a string using a loop.
L=['a','b','c']
text=' '
for s in L:
text+=s
| 2 | No.2 Revision |
I will assume your list consists of strings. You can build a string using a loop.
L=['a','b','c']
text=' '
text=''
for s in L:
text+=s
Or, more succinctly, you can use the python join command:
newtxt=''.join(L)
print newtxt
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.