mirror of
https://github.com/Xevion/exercism.git
synced 2025-12-06 03:15:01 -06:00
3 lines
133 B
Python
3 lines
133 B
Python
transition = {'G':'C', 'C':'G', 'T':'A', 'A':'U'}
|
|
def to_rna(dna_strand):
|
|
return ''.join(transition[char] for char in dna_strand) |