Say I have an array:
a = [2,20,2,10,10,10,10,9,10,3,18,3]
I don't have the skills yet to know how to separate this into different segments that consists of three values each in a for-loop like:
segment_1 = [2,20,2]
segment_2 = [10,10,10]
segment_3 = [10,9,10]
So the first time the loop is started, it will select the indexes of 1,2,3. Second time will result in indexes of 4,5,6.
I have only started doing
Can anyone help me with the coding? Thank you!