\begin{Verbatim}[commandchars=\\\{\}]
\PYG{k+kn}{from} \PYG{n+nn}{Bio} \PYG{k+kn}{import} \PYG{n}{Entrez}
\PYG{k+kn}{from} \PYG{n+nn}{Bio} \PYG{k+kn}{import} \PYG{n}{SeqIO}

\PYG{n}{Entrez}\PYG{o}{.}\PYG{n}{email} \PYG{o}{=} \PYG{l+s+s2}{\PYGZdq{}A.N.Other@example.com\PYGZdq{}}
\PYG{k}{with} \PYG{n}{Entrez}\PYG{o}{.}\PYG{n}{efetch}\PYG{p}{(}
    \PYG{n}{db}\PYG{o}{=}\PYG{l+s+s2}{\PYGZdq{}nucleotide\PYGZdq{}}\PYG{p}{,} \PYG{n}{rettype}\PYG{o}{=}\PYG{l+s+s2}{\PYGZdq{}gb\PYGZdq{}}\PYG{p}{,} \PYG{n}{retmode}\PYG{o}{=}\PYG{l+s+s2}{\PYGZdq{}text\PYGZdq{}}\PYG{p}{,} \PYG{n+nb}{id}\PYG{o}{=}\PYG{l+s+s2}{\PYGZdq{}6273291,6273290,6273289\PYGZdq{}}
\PYG{p}{)} \PYG{k}{as} \PYG{n}{handle}\PYG{p}{:}
    \PYG{k}{for} \PYG{n}{seq\PYGZus{}record} \PYG{o+ow}{in} \PYG{n}{SeqIO}\PYG{o}{.}\PYG{n}{parse}\PYG{p}{(}\PYG{n}{handle}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}gb\PYGZdq{}}\PYG{p}{):}
        \PYG{k}{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}{...\PYGZdq{}} \PYG{o}{\PYGZpc{}} \PYG{p}{(}\PYG{n}{seq\PYGZus{}record}\PYG{o}{.}\PYG{n}{id}\PYG{p}{,} \PYG{n}{seq\PYGZus{}record}\PYG{o}{.}\PYG{n}{description}\PYG{p}{[:}\PYG{l+m+mi}{50}\PYG{p}{]))}
        \PYG{k}{print}\PYG{p}{(}
            \PYG{l+s+s2}{\PYGZdq{}Sequence length }\PYG{l+s+si}{\PYGZpc{}i}\PYG{l+s+s2}{, }\PYG{l+s+si}{\PYGZpc{}i}\PYG{l+s+s2}{ features, from: }\PYG{l+s+si}{\PYGZpc{}s}\PYG{l+s+s2}{\PYGZdq{}}
            \PYG{o}{\PYGZpc{}} \PYG{p}{(}
                \PYG{n+nb}{len}\PYG{p}{(}\PYG{n}{seq\PYGZus{}record}\PYG{p}{),}
                \PYG{n+nb}{len}\PYG{p}{(}\PYG{n}{seq\PYGZus{}record}\PYG{o}{.}\PYG{n}{features}\PYG{p}{),}
                \PYG{n}{seq\PYGZus{}record}\PYG{o}{.}\PYG{n}{annotations}\PYG{p}{[}\PYG{l+s+s2}{\PYGZdq{}source\PYGZdq{}}\PYG{p}{],}
            \PYG{p}{)}
        \PYG{p}{)}
\end{Verbatim}
