human
Python - split sentence after words but with maximum of n characters in result
assistant
Here is some code to split string `text` into chunks of 16 characters each

re.findall('.{,16}\\b', text)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.