From f7ccfc712e54ed5448a64ffda2ac8cb1ba25eb33 Mon Sep 17 00:00:00 2001 From: "exercism-solutions-syncer[bot]" <211797793+exercism-solutions-syncer[bot]@users.noreply.github.com> Date: Wed, 6 Aug 2025 10:33:27 +0000 Subject: [PATCH] [Sync Iteration] python/rna-transcription/1 --- .../python/rna-transcription/1/rna_transcription.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 solutions/python/rna-transcription/1/rna_transcription.py diff --git a/solutions/python/rna-transcription/1/rna_transcription.py b/solutions/python/rna-transcription/1/rna_transcription.py new file mode 100644 index 0000000..bb420b9 --- /dev/null +++ b/solutions/python/rna-transcription/1/rna_transcription.py @@ -0,0 +1,12 @@ +def to_rna(dna_strand): + rna = ("") + for letter in dna_strand: + if letter == "A": + rna += "U" + if letter == "T": + rna += "A" + if letter == "C": + rna += "G" + if letter == "G": + rna += "C" + return rna