I would like to merge two lists into one 2d list.
list1=["Peter", "Mark", "John"] list2=[1,2,3]
into
list3=[["Peter",1],["Mark",2],["John",3]]
list3 = [list(a) for a in zip(list1, list2)]
1.4m articles
1.4m replys
5 comments
57.0k users