Computer Science, asked by ragavielectronics438, 5 months ago

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]]

Write the solution for the above in python?

Answers

Answered by ps1666520
0

Answer:

a = [1, 2, 3] >>> b = [4, 5, 6] >>> c = a + b >>> print c [1, 2, 3, 4, 5, 6]. Similarly, the * operator repeats a list a given number of times: >>> [0] * 4 [0, 0, 0, 0] >>> [1, 2, ...

Answered by lokeshahire85
0

Explanation:

Hhhghh ihhjiiughvkihgvviihh

Similar questions