def hamming_distance(seq1, seq2):
    """
    Calculate the Hamming distance between two sequences 
    of the same length. 
    The Hamming distance corresponds to the number of characters
    that differ between these two sequences.

    Args:
        seq1 (str), seq2 (str): Sequences to compare.

    Returns:
        Hamming distance (int) of seq1 and seq2.
    """
    dist = sum([char1 != char2 for char1, char2 in zip(seq1, seq2)])
    return dist