Let's say I have two lists of lists, a and b:
a = [[1,2,3],[4,5,6]]
b = [[7,8,9],[1,2,3]]
If a and b were both lists of numbers, I could just convert them to arrays and obtain the sum a+b using Python. However, it seems I am unable to do the same if a and b are lists of lists. Is there a similar method, without using for or while cicles?
Edit The desired result would be [[8,10,12],[5,7,9]]
[[i + j for i, j in zip(x, y)] for x, y in zip(a, b)]?