I have a text and want to pass a sliding window over it using the code from Rolling or sliding window iterator in Python and I have spaces in the text, so instead of how it currently works if n ==4,
input = 'Hello my name is Steven'
output = ['hell','ello','llo ','lo m','o my',' my ','my n',...]
I want it to basically ignore the spaces so the output looks like this:
output = ['hell','ello','my','name','is','Stev','teve','even']
how would I go about doing this?