Re: [Tutor] Find Elements in List That Equal A Specific Value

2010-05-12 Thread Steven D'Aprano
On Thu, 13 May 2010 03:58:45 am Su Chu wrote: > My problem is as follows: > I have three lists, one with unique values (list 1), one a sequence > of values that are not necessarily unique (list2), and a shorter list > with the unique values of list 2 (list 3). List 1 and List 2 are of > equal leng

Re: [Tutor] Find Elements in List That Equal A Specific Value

2010-05-12 Thread Luke Paireepinart
On Wed, May 12, 2010 at 1:22 PM, bob gailer wrote: > On 5/12/2010 1:58 PM, Su Chu wrote: >> >> I have three lists, one with unique values (list 1), one a sequence of >> values that are not necessarily unique (list2), and a shorter list with the >> unique values of list 2 (list 3). List 1 and List

Re: [Tutor] Find Elements in List That Equal A Specific Value

2010-05-12 Thread Lie Ryan
On 05/13/10 03:58, Su Chu wrote: > Hi there, > > I am new to Python. I am attempting to either define a "which" statement or > to find a method that already exists to do this sort of operation. > > My problem is as follows: > I have three lists, one with unique values (list 1), one a sequence of

Re: [Tutor] Find Elements in List That Equal A Specific Value

2010-05-12 Thread Dave Angel
Su Chu wrote: Hi there, I am new to Python. I am attempting to either define a "which" statement or to find a method that already exists to do this sort of operation. My problem is as follows: I have three lists, one with unique values (list 1), one a sequence of values that are not necessarily

Re: [Tutor] Find Elements in List That Equal A Specific Value

2010-05-12 Thread bob gailer
On 5/12/2010 1:58 PM, Su Chu wrote: I have three lists, one with unique values (list 1), one a sequence of values that are not necessarily unique (list2), and a shorter list with the unique values of list 2 (list 3). List 1 and List 2 are of equal lengths. An example: list1 = [ 1, 2, 3, 4,

[Tutor] Find Elements in List That Equal A Specific Value

2010-05-12 Thread Su Chu
Hi there, I am new to Python. I am attempting to either define a "which" statement or to find a method that already exists to do this sort of operation. My problem is as follows: I have three lists, one with unique values (list 1), one a sequence of values that are not necessarily unique (list2),