i have two nested list like:
a = [[2,3,4],[3,5,6]]
b = [[4,5], [5,6,7,7,7]]
i need to append two nested list into single nested list.
Expected output:
[[4, 5], [5, 6, 7, 7, 7], [2, 3, 4], [3, 5, 6]]
I tried this way,
a = [[2,3,4],[3,5,6]]
b = [[4,5], [5,6,7,7,7]]
b.append(a)
print(b)
output i got:
[[4, 5], [5, 6, 7, 7, 7], [[2, 3, 4], [3, 5, 6]]]
Any suggestions would be helpful!
extendmethod of thelistobject.