Splitting a string into groups of three characters

lemon97 at gmail.com lemon97 at gmail.com
Sun Aug 7 21:58:24 EDT 2005


Hi,

Is there a function that split a string into groups, containing an "x"
amount of characters?

Ex.
TheFunction("Hello World",3)

Returns:

['Hell','o W','orl','d']


Any reply would be truly appreciated.

Thank You,




More information about the Python-list mailing list