I have lists like..
l1=[1,2,3]
l2=[7,3,4]
i need output like
l3=[[1,2,3],[7,3,4]]
I have lists like..
l1=[1,2,3]
l2=[7,3,4]
i need output like
l3=[[1,2,3],[7,3,4]]
You can just do this
l3 = [l1,l2]
Based on your update not requiring pandas, you can simply do this:
l1=[1,2,3]
l2=[7,3,4]
l3 = [l1] + [l2]
Output:
[[1, 2, 3], [7, 3, 4]]