\begin{Verbatim}[commandchars=\\\{\}]
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{k+kn}{from} \PYG{n+nn}{Bio.Seq} \PYG{k+kn}{import} \PYG{n}{Seq}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{my\PYGZus{}seq} \PYG{o}{=} \PYG{n}{Seq}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}GATCGATGGGCCTATATAGGATCGAAAATCGC\PYGZdq{}}\PYG{p}{)}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n+nb}{len}\PYG{p}{(}\PYG{n}{my\PYGZus{}seq}\PYG{p}{)}
\PYG{g+go}{32}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{my\PYGZus{}seq}\PYG{o}{.}\PYG{n}{count}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}G\PYGZdq{}}\PYG{p}{)}
\PYG{g+go}{9}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{l+m+mi}{100} \PYG{o}{*} \PYG{n+nb}{float}\PYG{p}{(}\PYG{n}{my\PYGZus{}seq}\PYG{o}{.}\PYG{n}{count}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}G\PYGZdq{}}\PYG{p}{)} \PYG{o}{+} \PYG{n}{my\PYGZus{}seq}\PYG{o}{.}\PYG{n}{count}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}C\PYGZdq{}}\PYG{p}{))} \PYG{o}{/} \PYG{n+nb}{len}\PYG{p}{(}\PYG{n}{my\PYGZus{}seq}\PYG{p}{)}
\PYG{g+go}{46.875}
\end{Verbatim}
