Jan-08-2019, 12:29 PM
(Jan-08-2019, 11:58 AM)perfringo Wrote: I am not familiar with biopython at all. I was able to find description of Bio.SeqIO.parse. According to documentation: "Turn a sequence file into an iterator returning SeqRecords.". I have no idea what format 'fasta' files are or what is the content of 'protein.fasta' or what SeqRecord is.
However, you wrote:
"These answers were right" / "Then I tried to multiply all the list elements together"
You just wrap your 'right answers' into function and you will get product of said list:
print(sequence_product(right_answers))
I tried it like this :
[python]sequence_productx(combinations)/python]
and this gives 32768 as an answer.
Which is correct for the last list combination but the other 4 are not printed out.