\begin{Verbatim}[commandchars=\\\{\}]
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{aligner}\PYG{o}{.}\PYG{n}{mode} \PYG{o}{=} \PYG{l+s+s2}{\PYGZdq{}global\PYGZdq{}}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{aligner}\PYG{o}{.}\PYG{n}{mismatch\PYGZus{}score} \PYG{o}{=} \PYG{o}{\PYGZhy{}}\PYG{l+m+mi}{10}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{alignments} \PYG{o}{=} \PYG{n}{aligner}\PYG{o}{.}\PYG{n}{align}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}AAACAAA\PYGZdq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}AAAGAAA\PYGZdq{}}\PYG{p}{)}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n+nb}{len}\PYG{p}{(}\PYG{n}{alignments}\PYG{p}{)}
\PYG{g+go}{2}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n+nb}{print}\PYG{p}{(}\PYG{n}{alignments}\PYG{p}{[}\PYG{l+m+mi}{0}\PYG{p}{])}
\PYG{g+go}{AAAC\PYGZhy{}AAA}
\PYG{g+go}{|||\PYGZhy{}\PYGZhy{}|||}
\PYG{g+go}{AAA\PYGZhy{}GAAA}
\PYG{g+go}{\PYGZlt{}BLANKLINE\PYGZgt{}}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{alignments}\PYG{p}{[}\PYG{l+m+mi}{0}\PYG{p}{]}\PYG{o}{.}\PYG{n}{aligned}
\PYG{g+go}{(((0, 3), (4, 7)), ((0, 3), (4, 7)))}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n+nb}{print}\PYG{p}{(}\PYG{n}{alignments}\PYG{p}{[}\PYG{l+m+mi}{1}\PYG{p}{])}
\PYG{g+go}{AAA\PYGZhy{}CAAA}
\PYG{g+go}{|||\PYGZhy{}\PYGZhy{}|||}
\PYG{g+go}{AAAG\PYGZhy{}AAA}
\PYG{g+go}{\PYGZlt{}BLANKLINE\PYGZgt{}}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{alignments}\PYG{p}{[}\PYG{l+m+mi}{1}\PYG{p}{]}\PYG{o}{.}\PYG{n}{aligned}
\PYG{g+go}{(((0, 3), (4, 7)), ((0, 3), (4, 7)))}
\end{Verbatim}
