If you want to convert a list of characters into a string in Python programming language. Use the join method of the empty string to join all of the strings together with the empty string in between, like so:
1 2 3 | >>> a = ['a', 'b', 'c', 'd'] >>> ''.join(a) 'abcd' |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.