This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Output file in Python
for entry in response:
    accession = entry['GBSeq_primary-accession']
    for country in extract_countries(entry):
        print("%s" % accession, "%s" % country, sep=',')

How can I write an output_file.txt with the result showed by "print"?

python script output

0 answers

No answers yet.

Log in to answer this question.