Back
If I have a list of chars:
a = ['a','b','c','d']
How do I convert it into a single string?
a = 'abcd'
To convert a list of characters into the string you can use the join method to join all of the strings together with the empty string in between you can do it like as follows:
>>> a = ['a', 'b', 'c', 'd']>>> ''.join(a)
>>> a = ['a', 'b', 'c', 'd']
>>> ''.join(a)
31k questions
32.8k answers
501 comments
693 users