4 lines
122 B
Python
4 lines
122 B
Python
RNA_TRANSLATION = str.maketrans('GCTA', 'CGAU')
|
|
|
|
def to_rna(dna_strand):
|
|
return dna_strand.translate(RNA_TRANSLATION)
|