Created
March 13, 2017 21:44
-
-
Save cjw296/29a7d873fa38d1e7a4afea5c8d96e332 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dna_to_rna = {'A': 'U', 'C':'G', 'G':'C', 'T': 'A'} | |
def transcribe(d): | |
return ''.join(dna_to_rna.get(e, '') for e in d) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment