def get_dimers(seq):
    """Extract NN dimers from sequence.

    Args:
        seq (str): nucleic acid sequence.

    Returns:
        list: NN dimers.
    """
    return [seq[i : (i + 2)] for i in range(len(seq) - 1)]