Victor Bouffier wrote:
> Hi to all,
> 
> I'd like to split a long string into equally long strings (len(str) =
> 3). 

This is a very popular topic in the Python Cookbook. See for example
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/425044
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/439095

and the links in the comments for the first recipe above.

Kent

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to