Compare the Triplets

  • + 0 comments

    I love it i made some small changes:

    def compareTriplets(a, b): c = 0 d = 0

    for e, f in zip(a, b):
        if e > f:
            c+= 1
        elif e < f:
            d+=1
    return (c,d)