def hammingDistance(this: list, that: list):
    """
    Calculates the hamming distance between two 3x3 lists
    """
    count = 0
    for i in range(3):
        for j in range(3):
            if this[i][j] != that[i][j]:
                count += 1
    return count