I'm trying to make a function that takes two list of lists and returns the sum of their values.
Let's say I have 2 lists:
list1 = [[7,8], []]
list2 = [[3,4,2],[6,9]]
Expected output:
[[10,12,2],[6,9]]
Or another 2 lists:
list1 = [[], []]
list2 = [[3,4,2],[6,9]]
Expected output:
[[3,4,2],[6,9]]
I think using list comprehension would be the most effective way to accomplish this, but I'm not as familiar with list comprehension as I'd like to be.
I've looked on Stack Overflow, and the closest answer I can find to this question is only with 2 lists that don't contain another list.