I have a list and it adds each letter of a word one by one to this list, I don\'t know what will be in the list until the program is run. How do I join each letter in the li
a = ['a', 'b', 'c']
res = "".join(a)
You can again convert back to list of letters using :
list(res)
''.join(['p','y','t','h','o','n'])
For more information see str.join
''.join(str(v) for v in my_list)
Since you do not know what will be in the list
s=""
for v in [['p', 'y', 't', 'h', 'o', 'n']:
s+=v
res=[s]