Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

answer this question and show answer step by step c1asine00 This true for plants

ID: 3575921 • Letter: A

Question


answer this question and show answer step by step

c1asine00 This true for plants anirals bacteriainfactitis al lieforms on earth that incredible molecular frat caled bramerpson, your RNA that minorthe sequerce of nucleorides in wour DhiA The RNA ter creates proners that Oealeafumettioncaled dea to ma which should wie asinputa string which wilhawe ONA ignored by your transcribe function and disappear from the outaut. These might bespacesor Then, dina to ma should outputthe rgernNA that would be produced from that DNA string The correct ounout simply uses replacement Tsinthe input become As in the output. Not wile working? commonproblem that can arise isthat enato rea needs have an to capture alofthe non-egal charact should be dropped. llnote that the space disappears

Explanation / Answer

def dna_to_rna(dna):
    rna = ''
    for i in range(len(dna)):
        if dna[i].upper()=='A':
            rna += 'U'
        elif dna[i].upper()=='C':
            rna += 'G'
        elif dna[i].upper()=='G':
            rna += 'C'
        elif dna[i].upper()=='T':
            rna += 'A'
    return rna
print dna_to_rna('ACGTTGCA')