"Terrance N. Phillip" <[EMAIL PROTECTED]> 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))] -- http://mail.python.org/mailman/listinfo/python-list
"Terrance N. Phillip" <[EMAIL PROTECTED]> 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))] -- http://mail.python.org/mailman/listinfo/python-list