<div dir="ltr">Dear Markus,<div><br></div><div>Thank you very much!</div><div><br></div><div>Best,</div><div><br></div><div>Fernanda.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-01-13 17:22 GMT-02:00 Markus Piotrowski <span dir="ltr"><<a href="mailto:Markus.Piotrowski@ruhr-uni-bochum.de" target="_blank">Markus.Piotrowski@ruhr-uni-bochum.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Dear Fernanda,<br>
<br>
From you description it seems that you run Python from a command
line and then insert the code.<br>
The '...' indicate an indented block. Your second line is a for loop
that ends with a ':', so the following lines will be indented (they
are the body of the for loop). You just have to hit 'ENTER' two
times to make Python clear that you are ready to execute the code
block. <br>
The execution will probably fail, if you don't have the file
"ls_orchid.fasta" in the same directory where you have started your
Python session.<br>
<br>
Best, Markus<div><div class="h5"><br>
<br>
<div class="m_7721289935731660017moz-cite-prefix">Am 13.01.2018 um 18:55 schrieb Fernanda
Trancoso:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hello guys,
<div>I'm trying to do the biopython tutorial and cookbook but i
got stuck on the "2.4.1 Simple FASTA parsing example". It
says </div>
<div><span><br>
</span></div>
<div><span>Now try this in Python:</span>
<pre class="m_7721289935731660017gmail-verbatim" style="margin-left:0ex;margin-right:auto;color:rgb(0,0,0)">from Bio import SeqIO
for seq_record in SeqIO.parse("ls_orchid.fasta", "fasta"):
print(<a href="http://seq_record.id" target="_blank">seq_record.id</a>)
print(repr(seq_record.seq))
print(len(seq_record))</pre>
<div>But from the second line forward the ">>>" turns
into "..." and I have no idea of what input is missing,
since I did copy/paste to be sure that i wasn't writing
something wrong. </div>
<div>Does anyone knows what might be going wrong?</div>
<div><br>
</div>
<div>Thanks</div>
-- <br>
<div class="m_7721289935731660017gmail_signature">
<div dir="ltr">Fernanda Fontes Trancoso
<div>Aluna de Graduação em Ciências Biológicas na UFMG</div>
<div>Iniciação Científica no <a href="http://abelhasufmg.wix.com/lsea" target="_blank">Laboratório de Sistemática de
Insetos</a></div>
<div><span style="font-size:12.8px"><a href="tel:+55%2031%209156-6485" value="+553191566485" target="_blank">+55 (31) 9156-6485</a></span><br>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="m_7721289935731660017mimeAttachmentHeader"></fieldset>
<br>
</div></div><span class=""><pre>______________________________<wbr>_________________
Biopython mailing list - <a class="m_7721289935731660017moz-txt-link-abbreviated" href="mailto:Biopython@mailman.open-bio.org" target="_blank">Biopython@mailman.open-bio.org</a>
<a class="m_7721289935731660017moz-txt-link-freetext" href="http://mailman.open-bio.org/mailman/listinfo/biopython" target="_blank">http://mailman.open-bio.org/<wbr>mailman/listinfo/biopython</a></pre>
</span></blockquote>
<br>
</div>
<br>______________________________<wbr>_________________<br>
Biopython mailing list - <a href="mailto:Biopython@mailman.open-bio.org">Biopython@mailman.open-bio.org</a><br>
<a href="http://mailman.open-bio.org/">http://mailman.open-bio.org/</a><wbr>mailman/listinfo/biopython<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Fernanda Fontes Trancoso<div>Aluna de Graduação em Ciências Biológicas na UFMG</div><div>Iniciação Científica no <a href="http://abelhasufmg.wix.com/lsea" target="_blank">Laboratório de Sistemática de Insetos</a></div><div><span style="font-size:12.8px">+55 (31) 9156-6485</span><br></div></div></div>
</div>