You will write three small functions that find a restriction site and cut a piece of DNA at it.
The idea. To test a palindrome, pair the bases and reverse the result. To cut, find every place where the site starts, and cut the top strand after the chosen base of the site.
Your tasks.
pair_up. It gives the bottom strand of a site, read from its 5 prime end.is_palindrome. It is True when the site is the same as its paired and reversed form.fragments. It gives the sizes of the pieces of the top strand, from the left, when the DNA is cut after cut_after bases of every site.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.