RNA Length
Proteins are the building blocks of life. The process starts when another protein (a polymerase) reads your
genetic code and performs transcription, the code (RNA) for making protein. Ribosomes will then attach to this
RNA code to begin making specific proteins. Your genetic code is made up of pairs of nucleotides. Once
transcribed into the code, these nucleotides contain the following nucleotides:
U,G,A,C.
UGA, UAA, and UAG are stop codons and AUG is a start codon so that the protein, ribosome, can identify where
to stop and start the protein formation.
A genetics lab has tasked you to design a function which recognises the length of the RNA code (excluding the
start and stop codons). The function must also determine if their code is actually valid (must contain AUG as a
start codon and UGA, UAA, or UAG at the end)
Note: RNA starts with a start codon AUG and ends with UGA, UAA, or UAG
The function must return "Not readable RNA code" if the above conditions are not met.