Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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).