I have a string with digits like so - digit = \"7316717\"
digit = \"7316717\"
Now I want to split the string in such a way that the output is a moving window of 3 digits at
digit = "7316717" digit_sets = [digit[i:i+3] for i in range(len(digit)-2)]