Dna.py solution - try yourself first!


I was getting an incorrect result on my project and doing some research found just two other mentions of the code for dna.py in the forums.

Those other solutions were flawed in separate ways, but in scanning through their code and trialing different methods I was able to figure out where my dna_codons() method was broken. Specifically, there seems to be a lot of confusion around appending the incremented string slices into the codons list



What results are you getting? It should be,

$ python dna.py
2 matches. Individual may be freed.
6 matches. Continue investigation.
1 matches. Individual may be freed.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.