First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 12 years ago

fidbc gravatar image

Here is a one liner for that.

sage: ta3 =[ [ta1[i][0],ta1[i][1]-ta2[i][1]] for i in range(len(ta1))]

Assuming len(ta1)==len(ta2).