You are viewing a single comment's thread. Return to all comments →
A little modification for any length:
print(sum(1 for x in range(len(a)) if a[x] > b[x]), sum(1 for x in range(len(b)) if b[x] > a[x]))
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 →
A little modification for any length: