You will write functions that work with the bases of a DNA strand: the partner strand, the pair counts, and the percentage of G from the percentage of A.
The idea. A pairs with T, and C pairs with G. In a double helix, A equals T and C equals G.
Your tasks.
partner. It gives the other strand, as text, for a strand written as text.pair_counts. It gives two numbers: the number of A-T pairs and the number of C-G pairs of the strand.percent_g. It gives the percentage of G, from the percentage of A, in a double helix.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…