Assume there is a list
L=list(range(N)), and number
I want to def an function to divide
L2 so that
How to build this function in an effective way?
We got: L=list(range(7))
func(L) returns [3,4] and [0,1,2,5,6]