<div dir="ltr">Please, what do I need to change in this example that works fine in python2 but not in python3:<div><br></div><div><div>from __future__ import print_function</div><div>import gzip</div><div>from Bio import SeqIO<br></div><div>handle = gzip.open("file.fasta.gz", "r")</div><div>record = SeqIO.parse(handle, "fasta")<br></div><div>for rr in record:<br></div><div> print(<a href="http://rr.id">rr.id</a>)</div><div><br></div><div>IndexError: index out of range<br></div><div><br></div><div>Thanks,</div><div><br></div><div>Alan</div>
</div></div>