I have this situation: I got a string that I want to split every X characters. My problem is that the split method only splits the string based on a string such as:
a = 'asdeasxdasdqw'
print a.split('x')
>>>['asdeasx', 'dasdqw']
What I need is something similar to:
[pseudocode]
paragraph = 'my paragraph'
split_offset = 4
print paragraph.split(split_offset)
>>> ['my pa', 'ragraph']