Re: Function to Add List Elements?

2008-10-23 Thread Boris Borcic
Chris Rebert wrote: On Wed, Oct 22, 2008 at 12:59 PM, Henry Chang [EMAIL PROTECTED] wrote: This seems like a simple problem, but I can't find a simple solution. Suppose I have two lists of integers. List A = [A1, A2, A3] List B = [B1, B2, B3] I just simply want a new list, such as: List C =

Function to Add List Elements?

2008-10-22 Thread Henry Chang
This seems like a simple problem, but I can't find a simple solution. Suppose I have two lists of integers. List A = [A1, A2, A3] List B = [B1, B2, B3] I just simply want a new list, such as: List C = [C1, C2, C3] where: C1 = A1 + B1 C2 = A2 + B2 C3 = A3 + B3 Is there a simple function to

Re: Function to Add List Elements?

2008-10-22 Thread Chris Rebert
On Wed, Oct 22, 2008 at 12:59 PM, Henry Chang [EMAIL PROTECTED] wrote: This seems like a simple problem, but I can't find a simple solution. Suppose I have two lists of integers. List A = [A1, A2, A3] List B = [B1, B2, B3] I just simply want a new list, such as: List C = [C1, C2, C3]

Re: Function to Add List Elements?

2008-10-22 Thread Henry Chang
Very nice, that works! Thanks so much, Chris! On Wed, Oct 22, 2008 at 1:06 PM, Chris Rebert [EMAIL PROTECTED] wrote: On Wed, Oct 22, 2008 at 12:59 PM, Henry Chang [EMAIL PROTECTED] wrote: This seems like a simple problem, but I can't find a simple solution. Suppose I have two lists of