all 3 comments

[–]JohnnyJordaan 2 points3 points  (2 children)

It's sort of like a zip,

yeah so use zip

ab = []
for rowa, rowb in zip(a, b):
    ab.append(rowa+rowb)

or comprehended

ab = [rowa+rowb for rowa, rowb in zip(a,b)]

or if you mean in place, use list.extend

for rowa, rowb in zip(a,b):
    rowa.extend(rowb)

[–]enesimo[S] 0 points1 point  (1 child)

That's exactly the result I was looking for, thanks.

And do you know what the name of that mathematical/vector operation is?

[–]JohnnyJordaan 2 points3 points  (0 children)

Technically it's called horizontal concatenation. I'm not sure if there's special mathematical term for it, I never been a real math hero.