\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{k+kn}{from} \PYG{n+nn}{Bio.Alphabet} \PYG{k+kn}{import} \PYG{n}{generic\PYGZus{}dna}\PYG{p}{,} \PYG{n}{generic\PYGZus{}protein}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{dna\PYGZus{}seq} \PYG{o}{=} \PYG{n}{Seq}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}ACGT\PYGZdq{}}\PYG{p}{,} \PYG{n}{generic\PYGZus{}dna}\PYG{p}{)}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{prot\PYGZus{}seq} \PYG{o}{=} \PYG{n}{Seq}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}ACGT\PYGZdq{}}\PYG{p}{,} \PYG{n}{generic\PYGZus{}protein}\PYG{p}{)}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{dna\PYGZus{}seq} \PYG{o}{==} \PYG{n}{prot\PYGZus{}seq}
\PYG{g+go}{BiopythonWarning: Incompatible alphabets DNAAlphabet() and ProteinAlphabet()}
\PYG{g+go}{True}
\end{Verbatim}
