I have a string like this:
string = 'aaabbbcccddd'
and next I want to have a list that contains ALL the pieces that are 3 indices long, so:
aaa, aab, abb, bbb, bbc, bcc, ccc, ccd, cdd, ddd
How do I get there? Because re.finditer
& re.findall
won't take overlapping matches, which I do need.