Python Split Word em pares de letras
string = 'ABCDXY'
[string[i:i+2] for i in xrange(0, len(string), 2)]
Fancy Frog
string = 'ABCDXY'
[string[i:i+2] for i in xrange(0, len(string), 2)]
s = 'abcdef'
L = zip(s[::2], s[1::2])
# -> [('a', 'b'), ('c', 'd'), ('e', 'f')]