You are viewing a single comment's thread. Return to all comments →
Here's another Python3 example. A bit lengthy, but gets the job done:
def solve(a0, a1, a2, b0, b1, b2): alice = [a0, a1, a2] bob = [b0, b1, b2] score = [0, 0] for a, b in zip(alice, bob): if a > b: score[0]+= 1 elif b > a: 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 →
Here's another Python3 example. A bit lengthy, but gets the job done: