def dist(str1, str2):
    """
    Returns the distance between two strings in term of number of
    different characters.
    Example:
        dist("abc", "dbc") == 1
        dist("abc", "def") == 3
    """
    return sum(a != b for a, b in zip(str1, str2))