how to split python string into N numbers equally

41

import textwrap
print(textwrap.wrap("123456789", 2))
#prints ['12', '34', '56', '78', '9']

Comments

Submit
0 Comments