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