If I have a string 'banana peel'
and I want to break it down to a width of 3 characters as in:
'ban'
'ana'
'pee'
'l'
How would I go about that? How would I remove the space/whitespace between 'banana' and 'peel' that is in the middle of the string and create the results above?
Only things that come to mind are things like list()
and strip()