Answers for "how to split python string into N numbers equally"

0

how to split python string into N numbers equally

import textwrap
print(textwrap.wrap("123456789", 2))
#prints ['12', '34', '56', '78', '9']
Posted by: Guest on September-21-2021

Code answers related to "how to split python string into N numbers equally"

Python Answers by Framework

Browse Popular Code Answers by Language