My Python code is supposed to output an array with a string divided by 5 chars. I do not understand the logic here:
string = 'j3h1273172' # example
def getStringSplitBy(num=5, string):
for i in range(len(string)):
print string[i+num]
The output should be:
['j3h12','73172']