Rosalind: Translating RNA into Protein Rodrigo Vallejos included in Rosalind 2023-05-16 2023-05-16 37 words One minute Python 1 2 3 4 5 6 7 8 def codons(sequence: str) -> Generator[str, None, None]: for i in range(0, len(sequence), 3): yield sequence[i:i + 3] def translate(rna: str) -> str: for codon in codons(rna): yield CODONS[codon]