Let's say I have:
a = [10,14,16]
b = [0,1,2]
and I want combine a
and b
into one list, as shown below:
print c
[[10, 0], [14, 1], [16, 2]]
I have tried to merge the two lists:
a + b
[10, 14, 16, 0, 1, 2]
but it's not same as what I want to achieve. How can I do that in Python?