DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+3 =
Submit