I'm hoping to combine two arrays
A: ([1,2,5,8])
B: ([4,6,7,9])
to
C: ([[1,4],
[2,6],
[5,7],
[8,9]])
I have tried insert, append and concatenate, they only lump all elements together without giving the dimension in C.
I'm new to Python, any help will be appreciated.
print(list(map(list, zip(A,B))))?