I am wondering if I can replace values of a list of lists with values of another list in Python:
let's say
W = [[0,0],[0,0,0],[0,0,0,0,0]]
V = [1,2,3,4,5,6,7,8,9,10]
I am wondering if I can replace values of W with values of V, in such a way that it becomes like below:
W = [[1,2],[3,4,5],[6,7,8,9,10]]
Thanks a lot!