You are viewing a single comment's thread. Return to all comments →
compare = [a[i] - b[i] for i in range(len(a))] sumA = sum(1 for n in compare if n > 0) sumB = sum(1 for n in compare if n < 0) return sumA, sumB
Seems like cookies are disabled on this browser, please enable them to open this website
Compare the Triplets
You are viewing a single comment's thread. Return to all comments →