You are viewing a single comment's thread. Return to all comments →
def compareTriplets(a, b): # Write your code here score = [0, 0]
for i, j in zip(a, b): if i > j: score[0] += 1 elif i < j: score[1] += 1 return score
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 →
def compareTriplets(a, b): # Write your code here score = [0, 0]