dna.py

1
2
3
4
5
6
7
8
9
10
11
12
DNA_RNA_MAP = {
    'G': 'C',
    'C': 'G',
    'T': 'A',
    'A': 'U'
}

def to_rna(dna):

    rna = ''.join([DNA_RNA_MAP[n] for n in dna])

    return rna

@FredrikMeyer and @leotrs think this looks great

Comments


You're not logged in right now. Please login via GitHub to comment