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)]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With