python string array change char code example
Example: how to save string characters into char array or list in python
fd = open(filename, 'rU')
chars = []
for line in fd:
chars.extend(line)
fd = open(filename, 'rU')
chars = []
for line in fd:
chars.extend(line)