Sha256: 6472f53382302e7a716e22204e7ac4f4e15845828685464d0dfacfb51fd5fa7e
Contents?: true
Size: 221 Bytes
Versions: 19
Compression:
Stored size: 221 Bytes
Contents
import sys if sys.version_info[0] == 2: from string import maketrans else: maketrans = str.maketrans DNA_TO_RNA = maketrans('AGCT', 'UCGA') def to_rna(dna_strand): return dna_strand.translate(DNA_TO_RNA)
Version data entries
19 entries across 19 versions & 1 rubygems