Is it possible to split a string every nth character?
For example, suppose I have a string containing the following:
'1234567890'
How can I get it to look like this:
['12','34','56','78','90']
For the same question with a list, see How do I split a list into equally-sized chunks?. The same techniques generally apply, though there are some variations.