sorry this might be really simple but I can't think of a way to do it. I have a list like this:
L = [('a', [[0],[1]]), ('b', [[2],[3]]), ('c', [[4],[5]])]
I want to iterate over L, forward extending the second item in each tuple. Which will give:
L = [('a', [[0],[1]]), ('b', [[0], [1], [2],[3]]), ('c', [[0], [1], [2],[3], [4],[5]])]
I can't think of a way to this. Can someone help? Thanks