Compare the Triplets

  • + 0 comments

    Here is my solution:

    def compareTriplets(a, b):
        points = [0,0]
        for x, y in zip(a, b):
            match x,y:
                case a,b if x == y:
                    result == result
                case a,b if x > y:
                    result[0] += 1
                case a,b if x < y:
                    result[1] += 1
        return(result)