how to convert single array into multiple nested array format for slice method use

I got the one-dimensional array list and wanna remake it like this below. data = [[0,1,2,3,4,5,6,7,8],[9,10,11,12,13,14,15,16,17], … ,[88,89,90,91,92,93,94,95,96]] and then, I want to pick each of nested data[i] and slice the elements inside by 3, 6. For last, I want to make new two arrays by pushing the sliced array. e.g data[0]= [0,1,2,3,4,5,6,7,8] new_data1 =…

Details