You are viewing a single comment's thread. Return to all comments →
Thanks, this is great! Makes sense and it helped me write this after I saw your example:
def compareTriplets(a, b): score = [0,0] for i in range(0,3): if a[i] > b[i]: score[0] += 1 elif a[i] < b[i]: 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 →
Thanks, this is great! Makes sense and it helped me write this after I saw your example: