Question: acids = { ' UUU ' : { ' 1 - letter': ' F ' , ' 3 - letter': 'Phe', 'amino acid': 'Phenylalanine' }
acidsUUU: letter': Fletter': 'Phe', 'amino acid': 'Phenylalanine'
UUC: letter': Fletter': 'Phe', 'amino acid': 'Phenylalanine'
UUA: letter': Lletter': 'Leu', 'amino acid': 'Leucine'
UUG: letter': Lletter': 'Leu', 'amino acid': 'Leucine'
GGG: letter': Gletter': Gly 'amino acid': 'Glycine'
# create an empty string variable called 'protein
# Find the index of the 'AUG' substring in the mrna variable from Part
startcodon mrna.findAUG
# create a loop counter variable that starts at this index
index startcodon
# Create a 'while' loop to iterate while the loop counter is less than the length of the mrna string
while index lenmrna:
# Using the loop counter as the index into the mrna string, grab the next triplet mrnaidx:idx and store in a variable called 'triplet'
triplet mrnaindex:index
# Using this 'triplet' string variable as a key, look up the letter' protein associated with it using the acids dictionaryHELP here
# If this is equal to X break out of the loop
# if not, add this letter to the protein string
# Add to the counter variable
index
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
