Skip to content

Commit 90f024c

Browse files
committed
Finished working on the rna_transcription challenge
1 parent 154b4d7 commit 90f024c

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed
Binary file not shown.
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
1+
rna = {"G": "C",
2+
"C": "G",
3+
"T": "A",
4+
"A": "U"
5+
}
6+
17
def to_rna(dna_strand):
2-
pass
8+
res = ""
9+
10+
for char in dna_strand:
11+
if char in rna:
12+
res += rna[char]
13+
else:
14+
res += char
15+
16+
return res

0 commit comments

Comments
 (0)