I'm trying to run a script that takes a long series of numbers and checks them 4 at a time, so I'm using a for in range(0, len(stringOfDigits), 4): checking the string of numbers using the variable of the loop:
for i in range(0, len(stringOfDigits), 4):
    currFour = stringOfDigits[i:4]
    print("Current 4 being checked are")
    print(currFour)
But if I try to run it, it just pastes empty rows and exit the script like it's done.
What's the problem? Do strings accept variables when substringing? If not, what can I do to achieve the result I want?
 
    