python split string into groups of 2 code example
Example: 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
from textwrap import wrap
print(wrap('string', 2))
# splits 'string' into a list of 2 char strings