Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

split string into groups of 3 chars python

from textwrap import wrap
print(wrap('string', 2))
# splits 'string' into a list of 2 char strings
 
PREVIOUS NEXT
Tagged: #split #string #groups #chars #python
ADD COMMENT
Topic
Name
7+4 =