Converting a List into a String

Leif K-Brooks eurleif at ecritters.biz
Sat Nov 5 13:07:10 CET 2005


blah at blah.blah wrote:
> list = ['f', 'e', 'd', 'c', 'b', 'a']
> 
> How can i convert it into a string so the output is
> 
> fedcba

print ''.join(list)



More information about the Python-list mailing list