<[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Is there a function that split a string into groups, containing an "x"
> amount of characters?

There have been previous threads giving various solutions (which generally 
are not specific to strings).  You might find some some by searching the 
Google archive of this group.  Some of the variations depend on what to do 
if len(s) % x != 0.  Do you pad to x, drop the extras, or return a 
deficient group?

Terry J. Reedy



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to