Question: # Given a DNA sequence (a string object named seq), this function will generate a list # codons and return the list out of the

 # Given a DNA sequence (a string object named seq), this

# Given a DNA sequence (a string object named seq), this function will generate a list # codons and return the list out of the function. For instance, DNA sequence (ATGCCT # has [ATG', 'TGC', 'GCC','CCT') as the result list. The function will also return the # number of codons. It is OK to have redundant codons in your list. def get_codon(seq): return codon Jit, number of coden In the main part of your python script, you need to call this function once by using a named string object. In this function call, you need to design two variables to receive the two objects returned by this function. Then, use these t objected to print the following exact content: 4. Result for get_codon (): Sequence [ATGCCT) has (41 codons # The underlined parts are changeable # other parts must be the same as describe [You can Hint: for loop with string slicing Warning: as you can see, in order to get the desired printout result all print statements are located in your main pr of your script,not inside your functions. However,for debugginR purpose, you do need to have print statements inside your functions. Then, you can comment them out after debugging. Make sure to have doc-string for each of your functions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!