I stumbled on windowing in the more_itertools library which appealed to me as an interesting alternative approach to the substrings functions if I could get it to work:
I did from more_itertools import windowed
to import it, but get ModuleNotFoundError: No module named 'more_itertools'
:
So I checked "Getting Started" for more_itertools, but was scared away by the warning on installing pip could leave your system in an inconsistent state:
Getting Started More Itertools
Is it ok to go ahead and do this? I love my IDE and don't want to break it, and I can write the function using s[i:j] notation, but windowing looked intriguing and I could learn something by giving it a go. My thanks in advance for any help.