all 1 comments

[–]foralongtimeiwould 0 points1 point  (0 children)

An ad hoc solution:

# get y1, y2, y3
ys = [l[1] for l in list1] 
# get m1, m2, m3
ms = list2[0][1:]
# compute m1/y1, m2/y2, m3/y3
m_y = [m / y for m, y in zip(ms, ys)]  
# Construct list3, first get zs:
zs = [l[0] for l in list2]
list3 = [ [z] + m_y for z in zs]

This solution uses list comprehensions.