\begin{Verbatim}[commandchars=\\\{\}]
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{k}{for} \PYG{n}{strand}\PYG{p}{,} \PYG{n}{nuc} \PYG{o+ow}{in} \PYG{p}{[(}\PYG{o}{+}\PYG{l+m+mi}{1}\PYG{p}{,} \PYG{n}{record}\PYG{o}{.}\PYG{n}{seq}\PYG{p}{),} \PYG{p}{(}\PYG{o}{\PYGZhy{}}\PYG{l+m+mi}{1}\PYG{p}{,} \PYG{n}{record}\PYG{o}{.}\PYG{n}{seq}\PYG{o}{.}\PYG{n}{reverse\PYGZus{}complement}\PYG{p}{())]:}
\PYG{g+gp}{... }    \PYG{k}{for} \PYG{n}{frame} \PYG{o+ow}{in} \PYG{n+nb}{range}\PYG{p}{(}\PYG{l+m+mi}{3}\PYG{p}{):}
\PYG{g+gp}{... }        \PYG{n}{length} \PYG{o}{=} \PYG{l+m+mi}{3} \PYG{o}{*} \PYG{p}{((}\PYG{n+nb}{len}\PYG{p}{(}\PYG{n}{record}\PYG{p}{)}\PYG{o}{\PYGZhy{}}\PYG{n}{frame}\PYG{p}{)} \PYG{o}{//} \PYG{l+m+mi}{3}\PYG{p}{)} \PYG{c+c1}{\PYGZsh{}Multiple of three}
\PYG{g+gp}{... }        \PYG{k}{for} \PYG{n}{pro} \PYG{o+ow}{in} \PYG{n}{nuc}\PYG{p}{[}\PYG{n}{frame}\PYG{p}{:}\PYG{n}{frame}\PYG{o}{+}\PYG{n}{length}\PYG{p}{]}\PYG{o}{.}\PYG{n}{translate}\PYG{p}{(}\PYG{n}{table}\PYG{p}{)}\PYG{o}{.}\PYG{n}{split}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}*\PYGZdq{}}\PYG{p}{):}
\PYG{g+gp}{... }            \PYG{k}{if} \PYG{n+nb}{len}\PYG{p}{(}\PYG{n}{pro}\PYG{p}{)} \PYG{o}{\PYGZgt{}=} \PYG{n}{min\PYGZus{}pro\PYGZus{}len}\PYG{p}{:}
\PYG{g+gp}{... }                \PYG{n+nb}{print}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}}\PYG{l+s+si}{\PYGZpc{}s}\PYG{l+s+s2}{...}\PYG{l+s+si}{\PYGZpc{}s}\PYG{l+s+s2}{ \PYGZhy{} length }\PYG{l+s+si}{\PYGZpc{}i}\PYG{l+s+s2}{, strand }\PYG{l+s+si}{\PYGZpc{}i}\PYG{l+s+s2}{, frame }\PYG{l+s+si}{\PYGZpc{}i}\PYG{l+s+s2}{\PYGZdq{}} \PYGZbs{}
\PYG{g+gp}{... }                      \PYG{o}{\PYGZpc{}} \PYG{p}{(}\PYG{n}{pro}\PYG{p}{[:}\PYG{l+m+mi}{30}\PYG{p}{],} \PYG{n}{pro}\PYG{p}{[}\PYG{o}{\PYGZhy{}}\PYG{l+m+mi}{3}\PYG{p}{:],} \PYG{n+nb}{len}\PYG{p}{(}\PYG{n}{pro}\PYG{p}{),} \PYG{n}{strand}\PYG{p}{,} \PYG{n}{frame}\PYG{p}{))}
\PYG{g+go}{GCLMKKSSIVATIITILSGSANAASSQLIP...YRF \PYGZhy{} length 315, strand 1, frame 0}
\PYG{g+go}{KSGELRQTPPASSTLHLRLILQRSGVMMEL...NPE \PYGZhy{} length 285, strand 1, frame 1}
\PYG{g+go}{GLNCSFFSICNWKFIDYINRLFQIIYLCKN...YYH \PYGZhy{} length 176, strand 1, frame 1}
\PYG{g+go}{VKKILYIKALFLCTVIKLRRFIFSVNNMKF...DLP \PYGZhy{} length 165, strand 1, frame 1}
\PYG{g+go}{NQIQGVICSPDSGEFMVTFETVMEIKILHK...GVA \PYGZhy{} length 355, strand 1, frame 2}
\PYG{g+go}{RRKEHVSKKRRPQKRPRRRRFFHRLRPPDE...PTR \PYGZhy{} length 128, strand 1, frame 2}
\PYG{g+go}{TGKQNSCQMSAIWQLRQNTATKTRQNRARI...AIK \PYGZhy{} length 100, strand 1, frame 2}
\PYG{g+go}{QGSGYAFPHASILSGIAMSHFYFLVLHAVK...CSD \PYGZhy{} length 114, strand \PYGZhy{}1, frame 0}
\PYG{g+go}{IYSTSEHTGEQVMRTLDEVIASRSPESQTR...FHV \PYGZhy{} length 111, strand \PYGZhy{}1, frame 0}
\PYG{g+go}{WGKLQVIGLSMWMVLFSQRFDDWLNEQEDA...ESK \PYGZhy{} length 125, strand \PYGZhy{}1, frame 1}
\PYG{g+go}{RGIFMSDTMVVNGSGGVPAFLFSGSTLSSY...LLK \PYGZhy{} length 361, strand \PYGZhy{}1, frame 1}
\PYG{g+go}{WDVKTVTGVLHHPFHLTFSLCPEGATQSGR...VKR \PYGZhy{} length 111, strand \PYGZhy{}1, frame 1}
\PYG{g+go}{LSHTVTDFTDQMAQVGLCQCVNVFLDEVTG...KAA \PYGZhy{} length 107, strand \PYGZhy{}1, frame 2}
\PYG{g+go}{RALTGLSAPGIRSQTSCDRLRELRYVPVSL...PLQ \PYGZhy{} length 119, strand \PYGZhy{}1, frame 2}
\end{Verbatim}
