split string into two character array python code example
Example 1: python string to char array
>>> s = "foobar"
>>> list(s)
['f', 'o', 'o', 'b', 'a', 'r']
Example 2: python split word into letter pairs
string = 'ABCDXY'
[string[i:i+2] for i in xrange(0, len(string), 2)]