Parallel arithmetic?

Paul Rubin http
Thu Aug 4 18:41:28 EDT 2005


"Terrance N. Phillip" <mediocre_person at hotmail.com> writes:
> Given a and b, two equal length lists of integers, I want c to be
> [a1-b1, a2-b2, ... , an-bn]. 

c = [a[i] - b[i] for i in xrange(len(a))]



More information about the Python-list mailing list