My existants list:
list1 = [0L, 1L, 2L, 7L, 8L, 3L, 4L, 5L, 6L]
list2 = [5,2,2]
The list that I want:
OutList = [[0L, 1L, 2L, 7L, 8L], [3L, 4L], [5L, 6L]]
How can I do that?
My existants list:
list1 = [0L, 1L, 2L, 7L, 8L, 3L, 4L, 5L, 6L]
list2 = [5,2,2]
The list that I want:
OutList = [[0L, 1L, 2L, 7L, 8L], [3L, 4L], [5L, 6L]]
How can I do that?