How to split string in equally long parts

Heiko Henkelmann heiko at
Tue Apr 8 22:57:02 CEST 2003

I need to split a string into an array of equally long substrings, like

'1234567890'   -> ['12', '34','56','78','90']

What is the most efficient way to do this?


More information about the Python-list mailing list