def distance(left, right):
    """
    Return the Hamming distance between to strings.

    Note: Strings are shortened to the shortest length.
    """

    distance = 0

    for left_token, right_token in zip(left, right):
        if left_token != right_token:
            distance += 1

    return distance