Madhusudan Singh wrote:

> Thanks. Now, a slightly more complicated question.
> 
> Say I have two lists of floats. And I wish to generate a list of floats that
> is a user defined function of the two lists.

        result = [sqrt(x**2 + y**2) for x, y in zip(xs, ys)]

-- 
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
   Did you ever love somebody / Did you ever really care
   -- Cassandra Wilson
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to