0

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?

Donald Duck
  • 8,409
  • 22
  • 75
  • 99
QuentinR
  • 1
  • 1

0 Answers0