Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python split word into letter pairs

string = 'ABCDXY'
[string[i:i+2] for i in xrange(0, len(string), 2)]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #split #word #letter #pairs
ADD COMMENT
Topic
Name
4+3 =