I have a sequence of values:
"000111111122222223333333444455556666"
Is it possible to utilize three separate loops to generate multiple arrays based on different index ranges? For instance, producing an array from index 0 to 3 ([000]), then creating arrays using the index ranges 3 to 10, 10 to 17, and 17 to 24 ([1111111], [2222222], [333333]), followed by another loop for index values ranging from 24 to 28, 28 to 32, and 32 to 36 ([4444], [5555], and [6666])?
In summary, a total of three distinct arrays would be generated utilizing three unique for loops.
array1 = [000]
array2 = [1111111, 2222222, 333333]
array3 = [4444, 5555, 6666]