Question: def Translation ( mRNA: str ) - > int: ` ' Return the length of the protein sequence that is encoded by the given mRNA'

def Translation(mRNA: str)-> int:
`'Return the length of the protein sequence that is encoded by the given mRNA''
>>>Translation (''AUGUGA'')
1
>>>Translation("ACCAUGAUAACCUAAGCAGUUUGACG'')
3
>>>Translation(''AUGAUGAUGAUGAUGUGAUGAUGAUGA'')
5
Don't use base methods to automatically find indexes(e.g., the find() method of the string type. Please guarantee that your solution is coded using loops.
def Translation ( mRNA: str ) - > int: ` ' Return

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 Programming Questions!