Re: Find Items & Indices In A List...

2004-12-10 Thread Bengt Richter
On Fri, 10 Dec 2004 16:27:29 GMT, Steven Bethard <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] wrote: >> Hello NG, >> >> I was wondering if there is a faster/nicer method (than a for loop) >> that will allow me to find the elements (AND their indices) in a list that >> verify a certain cond

Re: Find Items & Indices In A List...

2004-12-10 Thread Steven Bethard
[EMAIL PROTECTED] wrote: Hello NG, I was wondering if there is a faster/nicer method (than a for loop) that will allow me to find the elements (AND their indices) in a list that verify a certain condition. For example, assuming that I have a list like: mylist = [0, 1, 1, 1, 1, 5, 6, 7, 8, 1,

Re: Find Items & Indices In A List...

2004-12-10 Thread Bengt Richter
On Fri, 10 Dec 2004 16:01:26 +0100, [EMAIL PROTECTED] wrote: >Hello NG, > > I was wondering if there is a faster/nicer method (than a for loop) >that will allow me to find the elements (AND their indices) in a list that >verify a certain condition. For example, assuming that I have a list lik

Re: Find Items & Indices In A List...

2004-12-10 Thread Ola Natvig
[EMAIL PROTECTED] wrote: Hello NG, I was wondering if there is a faster/nicer method (than a for loop) that will allow me to find the elements (AND their indices) in a list that verify a certain condition. For example, assuming that I have a list like: mylist = [0, 1, 1, 1, 1, 5, 6, 7, 8, 1,

Re: Find Items & Indices In A List...

2004-12-10 Thread kaerbuhez
<[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > For example, assuming that I have a list like: > > mylist = [0, 1, 1, 1, 1, 5, 6, 7, 8, 1, 10] > > I would like to find the indices of the elements in the list that are > equal > to 1 (in this case, the 1,2,3,4,9 elements ar

Re: Find Items & Indices In A List...

2004-12-10 Thread Joachim Bauch
Hi Andrea, [EMAIL PROTECTED] wrote: I was wondering if there is a faster/nicer method (than a for loop) that will allow me to find the elements (AND their indices) in a list that verify a certain condition. For example, assuming that I have a list like: mylist = [0, 1, 1, 1, 1, 5, 6, 7, 8, 1,

Find Items & Indices In A List...

2004-12-10 Thread andrea . gavana
Hello NG, I was wondering if there is a faster/nicer method (than a for loop) that will allow me to find the elements (AND their indices) in a list that verify a certain condition. For example, assuming that I have a list like: mylist = [0, 1, 1, 1, 1, 5, 6, 7, 8, 1, 10] I would like to fi