[Tutor] [Q] list and loop

Young-Jin Lee ylee12@uiuc.edu
Mon, 26 Nov 2001 21:32:03 -0600


Hi, I'd like to how to effectively create a list out of two lists.
I have two lists, list1 = [ 1, 2, 3, 4, 5, .... 10] and list = [ 10, 20, 30,
40, .., 100]. I want to create another list out of these two lists such that
list3 = [ (1,10), (2,20), (3,30), ..., (10, 100)].
I think there must be an elegant way in python using for loop, but I
couldn't figure it out.
Thanks in advance.

YJ