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

Version Path
trackler-2.0.0.8 tracks/python/exercises/rna-transcription/example.py
trackler-2.0.0.7 tracks/python/exercises/rna-transcription/example.py
trackler-2.0.0.6 tracks/python/exercises/rna-transcription/example.py
trackler-2.0.0.5 tracks/python/exercises/rna-transcription/example.py
trackler-2.0.0.4 tracks/python/exercises/rna-transcription/example.py
trackler-2.0.0.3 tracks/python/exercises/rna-transcription/example.py
trackler-2.0.0.2 tracks/python/exercises/rna-transcription/example.py
trackler-2.0.0.1 tracks/python/exercises/rna-transcription/example.py
trackler-2.0.0.0 tracks/python/exercises/rna-transcription/example.py
trackler-1.0.4.1 tracks/python/exercises/rna-transcription/example.py
trackler-1.0.4.0 tracks/python/exercises/rna-transcription/example.py
trackler-1.0.3.0 tracks/python/exercises/rna-transcription/example.py
trackler-1.0.2.1 tracks/python/exercises/rna-transcription/example.py
trackler-1.0.2.0 tracks/python/exercises/rna-transcription/example.py
trackler-1.0.1.2 tracks/python/exercises/rna-transcription/example.py
trackler-1.0.1.1 tracks/python/exercises/rna-transcription/example.py
trackler-1.0.1.0 tracks/python/exercises/rna-transcription/example.py
trackler-1.0.0.1 tracks/python/exercises/rna-transcription/example.py
trackler-1.0.0 tracks/python/exercises/rna-transcription/example.py