Question: Please write in Python 3 You are to design a program that works as follows. It should ask the user for an original DNA string
Please write in Python 3
You are to design a program that works as follows. It should ask the user for an original DNA string as well as the particular pattern that is inverted. It should then locate the leftmost occurrence of that pattern, and the next subsequent and disjoint occurrence of the inverted pattern. The output should be the mutated DNA, with the segment including the inverted pair reversed. An example session might proceed as follows (where the user input is shown in bold): Enter a DNA sequence: CGATTGAACATGTAAGTCCATT Enter the pattern: TGAA Mutated DNA sequence: CGATTGAATGTACAAGTCCAAT.T
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
