Split string every nth character

How do I split a string every nth character?

'1234567890'   →   ['12', '34', '56', '78', '90']

For the same question with a list, see How do I split a list into equally-sized chunks?.

← Назад к списку