\begin{Verbatim}[commandchars=\\\{\}]
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{aligner}\PYG{o}{.}\PYG{n}{mode} \PYG{o}{=} \PYG{l+s+s1}{\PYGZsq{}local\PYGZsq{}}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{local\PYGZus{}alignments} \PYG{o}{=} \PYG{n}{aligner}\PYG{o}{.}\PYG{n}{align}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}TGAACT\PYGZdq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}GAC\PYGZdq{}}\PYG{p}{)}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{local\PYGZus{}alignment} \PYG{o}{=} \PYG{n}{local\PYGZus{}alignments}\PYG{p}{[}\PYG{l+m+mi}{0}\PYG{p}{]}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n+nb}{print}\PYG{p}{(}\PYG{n}{local\PYGZus{}alignment}\PYG{p}{)}
\PYG{g+go}{TGAACT}
\PYG{g+go}{ ||\PYGZhy{}|}
\PYG{g+go}{ GA\PYGZhy{}C}
\PYG{g+go}{\PYGZlt{}BLANKLINE\PYGZgt{}}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{local\PYGZus{}alignment}\PYG{o}{.}\PYG{n}{shape}
\PYG{g+go}{(2, 4)}
\end{Verbatim}
