Skip to content

Instantly share code, notes, and snippets.

@cjw296
Created March 13, 2017 21:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjw296/29a7d873fa38d1e7a4afea5c8d96e332 to your computer and use it in GitHub Desktop.
Save cjw296/29a7d873fa38d1e7a4afea5c8d96e332 to your computer and use it in GitHub Desktop.
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