I'm looking for a way to slice a list into n
amount of sublists
So for example if
A = [0,1,2,3,4,5,6,7,8,9]
If n = 4
I want 4 different sublists
B = [0,1,2]
C = [3,4,5]
D = [6,7,8]
E = [9]
but the last sublist must not be bigger than the previous so this wouldn't do
B = [0,1]
C = [2,3]
D = [4,5]
E = [6,7,8,9]