I have a list of integers x, and I want to create a 2D jagged list y of zeros, such that the length of row i of y is determined by element i of x.
For example:
x = [1, 3, 4]
Then:
y = [[0], [0, 0, 0,], [0, 0, 0, 0]]
How can I do this?
 
     
     
    