import statistics


def get_partition_agreement_score(partitionA, partitionB):
    """
    Compute the partition agreement score for two partitions.
    """
    scores = []
    for i, prtB in enumerate(partitionB):
        score = 0
        for j, prtA in enumerate(partitionA):
            if prtB.issubset(prtA):
                score = 1
                break
        scores += [score]
    return statistics.mean(scores or [0])