Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to split python string into N numbers equally

import textwrap
print(textwrap.wrap("123456789", 2))
#prints ['12', '34', '56', '78', '9']
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #split #python #string #N #numbers #equally
ADD COMMENT
Topic
Name
6+2 =