Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python split string size

some_string="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
x = 3 
res = [some_string[y - x:y] for y in range(x, len(some_string) + x, x)]
print(res)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #split #string #size
ADD COMMENT
Topic
Name
3+3 =