Suppose I've some userdefined lists:
Say,
[1,2,3,5,6,8]
[1,2,3,4,5,6,7,8,9,10]
Suppose I've to split the list using user defined number, say N =3 for the first list.
Then the output will be:
for N = 3 [1,2,3]
for N1 = 2 [5,6]
for N 2 = 1 [8]
say N =4 for the second list.
Then the output will be:
for N = 4 [1,2,3,4]
for N1 = 3 [5,6,7]
for N 2 = 2 [8,9]
for N3 = 1 [10]
So looping from N to 1. How can I get the output.
