Re: [Tutor] smarter way of looping

2006-01-26 Thread Elderly Geek
On 1/26/06, Alan Gauld <[EMAIL PROTECTED]> wrote: > > I often do a loop over arbitrary number of sequences. I do it like this: > > > >for elem1 in seq1: > >for elem2 in seq2: > >do whatever seq1,seq2 > > this isn`t nice I think. > > Actually its pretty common and not that ugly. > But...

Re: [Tutor] smarter way of looping

2006-01-26 Thread Alan Gauld
> I often do a loop over arbitrary number of sequences. I do it like this: > >for elem1 in seq1: >for elem2 in seq2: >do whatever seq1,seq2 > > this isn`t nice I think. Actually its pretty common and not that ugly. But... > myiterator=geniousfunction(seq1,seq2,seq3) > > and then myite

Re: [Tutor] smarter way of looping

2006-01-26 Thread Kent Johnson
Elderely Geek wrote: > Hi, > I`m a python newbie and could use some help. > > I often do a loop over arbitrary number of sequences. I do it like this: > > for elem1 in seq1: > for elem2 in seq2: > do whatever seq1,seq2 > > this isn`t nice I think. Is there some way I can say > my

[Tutor] smarter way of looping

2006-01-26 Thread Elderely Geek
Hi, I`m a python newbie and could use some help.   I often do a loop over arbitrary number of sequences. I do it like this:   for elem1 in seq1:     for elem2 in seq2:     do whatever seq1,seq2   this isn`t nice I think. Is there some way I can say myiterator=geniousfunction(seq1,seq2,seq3)   a