Q:

In python, how to divide two lists of lists by each other?

I have two lists like so
volB = [(Tarp, 3440, 7123), (Greg, 82, 1083)]

and
# 500B = [(Tarp, 85, 203), (Greg, 913, 234)]
B500 = [(Tarp, 85, 203), (Greg, 913, 234)]

I want to divide the second elements by each other. (In this case, I'd want to divide 3440 by 85, 82 by 913, and so on. Thanks for the help?

A:

from __future__ import division
quotients = [x[1] / y[1] for x, y in zip(list1, list2)]

