Итерация через строку в кусках в Python
mystring = "backballbillbothbulkcastcarecase"
# Getting length of string
chunksplit = 4
chunks = [mystring[i:i+chunksplit]
# Iterating through the string using rang
for i in range(0, len(mystring), chunksplit)]
# Print the new list consists of words of 4 character each
print(chunks)
Cautious Cow