You will write three small functions that check a primer against the rules of the lesson.
The idea. A good primer has 18 to 25 bases, 40 to 60 per cent G and C, and a G or C at its 3 prime end. Its melting temperature is .
Your tasks.
gc_percent. It gives the share of G and C bases, as a per cent.melting_temp. It gives the Tm with the formula of the lesson.good_primer. It is True only when the length, the share of G and C and the 3 prime end all follow the rules.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…