python char list to string code example
Example 1: list to string python
List = ["ITEM1", "ITEM2", "ITEM3"]
string_version = "".join(List)
print(string_version)
Example 2: how to join a list of characters in python
>>> a = ['a', 'b', 'c', 'd']
>>> ''.join(a)
'abcd'
Example 3: how to save string characters into char array or list in python
fd = open(filename, 'rU')
chars = []
for line in fd:
chars.extend(line)