how to get the following output in python3?
Input:
List = [1, 2, 3, 4, 5, 6]
List of list = [[0], [0, 1, 2], [0, 1], [0, 1], [0, 1, 2], [0]]
Output:
[[1], [2, 3, 4], [3, 4], [4, 5], [5, 6, 7], [6]]
Answers
Answered by
0
Answer:
I don't understand your question clearly
Similar questions