RNA Transcription
From Exercism PythonMITOriginal pagePython1 class period1 exercise6 graded tests
RNA Transcription
Introduction
You work for a bioengineering company that specializes in developing therapeutic solutions.
Your team has just been given a new project to develop a targeted therapy for a rare type of cancer.
Note
It's all very complicated, but the basic idea is that sometimes people's bodies produce too much of a given protein. That can cause all sorts of havoc.
But if you can create a very specific molecule (called a micro-RNA), it can prevent the protein from being produced.
This technique is called RNA Interference.
Instructions
Your task is to determine the RNA complement of a given DNA sequence.
Both DNA and RNA strands are a sequence of nucleotides.
The four nucleotides found in DNA are adenine (A), cytosine (C), guanine (G), and thymine (T).
The four nucleotides found in RNA are adenine (A), cytosine (C), guanine (G), and uracil (U).
Given a DNA strand, its transcribed RNA strand is formed by replacing each nucleotide with its complement:
G->CC->GT->AA->U
Note
If you want to look at how the inputs and outputs are structured, take a look at the examples in the test suite.
Open the
01folder and editmain.py. Run Tests checks it.
For teachers
RNA Transcription
Students solve Exercism's “RNA Transcription” Python exercise in CS Room, with Exercism's own tests.
- Time: 1 class period
- Tests: 6, set up for you when you import the lesson
- Practices: string-methods