Define function find gene that takes a DNA sequence as a parameter and finds the code for protein, that is, the sequence

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Define function find gene that takes a DNA sequence as a parameter and finds the code for protein, that is, the sequence

Post by answerhappygod »

Define Function Find Gene That Takes A Dna Sequence As A Parameter And Finds The Code For Protein That Is The Sequence 1
Define Function Find Gene That Takes A Dna Sequence As A Parameter And Finds The Code For Protein That Is The Sequence 1 (22.06 KiB) Viewed 25 times
Then
Define Function Find Gene That Takes A Dna Sequence As A Parameter And Finds The Code For Protein That Is The Sequence 2
Define Function Find Gene That Takes A Dna Sequence As A Parameter And Finds The Code For Protein That Is The Sequence 2 (34.61 KiB) Viewed 25 times
Define function find gene that takes a DNA sequence as a parameter and finds the code for protein, that is, the sequence between ATG and terminated with TAA. DNA sequences are built of four letters A, T, G and C. For example, ATGATAACGTAT. You may assume that there is only one gene in the sequence. For example: Test Result print(find_gene('CTATGTGGTAGCTAAGT')) TGGTAGC
Complete the function main that takes a DNA sequence as a parameter and finds the code for all proteins, that is, the sequences between ATG and terminated with TAA. If the number of openings sequences is not equal the number of closing ones the message: 'Cannot find genes, incomplete sequence provided' should be printed out, otherwise the sequences of genes separated by spaces would be displayed. Note that main should use previously implemented find_gene function. For example: Test Result print(main('ATGACGTAATCTGTTATGAGGCTACTAAGTCG)) AGGCTAC ACG
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply