\begin{Verbatim}[commandchars=\\\{\}]
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{aligner}\PYG{o}{.}\PYG{n}{match} \PYG{o}{=} \PYG{o}{+}\PYG{l+m+mi}{6}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{aligner}\PYG{o}{.}\PYG{n}{mismatch} \PYG{o}{=} \PYG{o}{\PYGZhy{}}\PYG{l+m+mi}{1}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{alignments} \PYG{o}{=} \PYG{n}{aligner}\PYG{o}{.}\PYG{n}{align}\PYG{p}{(}\PYG{n}{s1}\PYG{p}{,} \PYG{n}{s2}\PYG{p}{)}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n+nb}{print}\PYG{p}{(}\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}{Asn Leu Leu Phe}
\PYG{g+go}{||| ||| \PYGZhy{}\PYGZhy{}\PYGZhy{} |||}
\PYG{g+go}{Asn Leu \PYGZhy{}\PYGZhy{}\PYGZhy{} Phe}
\PYG{g+go}{\PYGZlt{}BLANKLINE\PYGZgt{}}
\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}{Asn Leu Leu Phe}
\PYG{g+go}{||| \PYGZhy{}\PYGZhy{}\PYGZhy{} ||| |||}
\PYG{g+go}{Asn \PYGZhy{}\PYGZhy{}\PYGZhy{} Leu Phe}
\PYG{g+go}{\PYGZlt{}BLANKLINE\PYGZgt{}}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n+nb}{print}\PYG{p}{(}\PYG{n}{alignments}\PYG{o}{.}\PYG{n}{score}\PYG{p}{)}
\PYG{g+go}{18.0}
\end{Verbatim}
