Files
python/exercises/practice/rna-transcription/.meta/example.py

5 lines
112 B
Python
Raw Normal View History

2021-11-23 14:05:17 +01:00
DNA_TO_RNA = str.maketrans("AGCT", "UCGA")
2013-07-30 09:01:03 -05:00
def to_rna(dna_strand):
return dna_strand.translate(DNA_TO_RNA)