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)]
2.1m questions
2.1m answers
60 comments
57.0k users