Possible Duplicates:
Split python string every nth character?
What is the most “pythonic” way to iterate over a list in chunks?
I need to split a string into equal parts. For example, if I have this string:
string = "123456781234567812345678"
I need to cut every 8 characters:
["12345678", "12345678", "12345678"]