Ask Your Question

Revision history [back]

click to hide/show revision 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

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