Re: [Tutor] Iterating through two lists at the same time with manipulation..

2007-06-28 Thread Kent Johnson
Iyer wrote: > I have 2 lists: > > List 1 has lists in it, such as > > list1 = [[1,'A'],[2,'B'],[3,'C'],[4,'D']] > > There is another list2 such as > > list2 = [[1,'AA'],[3,'CC'], [4,'DD']] > > For eg, > > I wish to iterate over both the lists and produce the output > > a = [[1,'A'],[1,'AA']]

Re: [Tutor] Iterating through two lists at the same time with manipulation..

2007-06-28 Thread John Fouhy
On 29/06/07, Iyer <[EMAIL PROTECTED]> wrote: > I have 2 lists: > > List 1 has lists in it, such as > > list1 = [[1,'A'],[2,'B'],[3,'C'],[4,'D']] > > There is another list2 such as > > list2 = [[1,'AA'],[3,'CC'], [4,'DD']] > > For eg, > > I wish to iterate over both the lists and produce the output

[Tutor] Iterating through two lists at the same time with manipulation..

2007-06-28 Thread Iyer
I have 2 lists: List 1 has lists in it, such as list1 = [[1,'A'],[2,'B'],[3,'C'],[4,'D']] There is another list2 such as list2 = [[1,'AA'],[3,'CC'], [4,'DD']] For eg, I wish to iterate over both the lists and produce the output a = [[1,'A'],[1,'AA']] b = [[2,'B']] c = [[3,'C'],[3,'CC']] d =