Code question

2008-04-23 Thread jyoung79
Wow!! Thank you all for these incredible examples! I really appreciate you all taking the time to share your thoughts. I'm really wanting to learn efficient ways of programming in Python and this is really going to help! Thanks again! Jay -- http://mail.python.org/mailman/listinfo/pyth

Re: Code question

2008-04-21 Thread Matimus
On Apr 21, 4:16 pm, George Sakkis <[EMAIL PROTECTED]> wrote: > On Apr 21, 4:42 pm, Matimus <[EMAIL PROTECTED]> wrote: > > > > > On Apr 21, 12:05 pm, <[EMAIL PROTECTED]> wrote: > > > > I've been trying to figure out a way to combine lists similar to how > > > zip() works. The main > > > difference

Re: Code question

2008-04-21 Thread George Sakkis
On Apr 21, 4:42 pm, Matimus <[EMAIL PROTECTED]> wrote: > On Apr 21, 12:05 pm, <[EMAIL PROTECTED]> wrote: > > > > > I've been trying to figure out a way to combine lists similar to how zip() > > works.  The main > > difference though is I want to work with different length lists and combine > > th

Re: Code question

2008-04-21 Thread Mark Wooding
<[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: > If anyone has time, I was wondering if you could share your thoughts > on whether this is an efficient way to do something like this, if it's > horrible and slow, etc. If your lists are fairly short then your algorithm is probably the best way to d

Re: Code question

2008-04-21 Thread Matimus
On Apr 21, 12:05 pm, <[EMAIL PROTECTED]> wrote: > I've been trying to figure out a way to combine lists similar to how zip() > works. The main > difference though is I want to work with different length lists and combine > them. I came up with > the example below, which returns a list like I'm

Code question

2008-04-21 Thread jyoung79
I've been trying to figure out a way to combine lists similar to how zip() works. The main difference though is I want to work with different length lists and combine them. I came up with the example below, which returns a list like I'm wanting. I'm assuming it's somewhat efficient (althou