A piece of DNA is written as a string of letters from the 5′ end to the 3′ end. You will make its partner strand, find its G-C content and count its hydrogen bonds.
The idea. Each base pairs with one other base. The partner strand runs the other way, so it must be turned round to be read from its 5′ end.
Your tasks.
partner. It gives the partner strand, read from its 5′ end to its 3′ end.gc_percent. It gives the per cent of G and C in the strand.bonds. It gives the number of hydrogen bonds in the double helix: 2 for each A-T pair and 3 for each G-C pair.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…
With Standard, you also open 12 more problems, 2 Python labs and 1 extra course. Everything you have used here stays free, always.