Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Combining two lists' topicStudent Support Forum > General > Archives > "Combining two lists"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Bill
02/29/12 6:45pm

Hi:

(In)

list1 = {a, b, c, d, e};
list2 = {f, g, h, i, j};
newList = Transpose[{list1, list2}]

(Out)

{{a, f}, {b, g}, {c, h}, {d, i}, {e, j}}

Hth,

Bill

URL: ,

Subject (listing for 'Combining two lists')
Author Date Posted
Combining two lists joe 02/28/12 9:51pm
Re: Combining two lists jf 02/29/12 12:23pm
Re: Combining two lists Bill Simpson 02/29/12 1:33pm
Re: Combining two lists Nasser M. Ab... 02/29/12 4:35pm
Re: Combining two lists Bill 02/29/12 6:45pm
< Previous CommentHelp | Reply To Comment | Reply To Topic