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