Skip to content

Commit

Permalink
Test PR to confirm the no important files change fix worked. DO NO ME…
Browse files Browse the repository at this point in the history
…RGE!
  • Loading branch information
BethanyG committed Jan 11, 2025
1 parent c8b3a39 commit 9f1911b
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 6 deletions.
36 changes: 36 additions & 0 deletions exercises/practice/protein-translation/.approaches/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"introduction": {
"authors": [
"BethanyG"
]
},
"approaches": [
{
"uuid": "",
"slug": "",
"title": "",
"blurb": "",
"authors": [
"BethanyG"
]
},
{
"uuid": "",
"slug": "",
"title": "",
"blurb": "",
"authors": [
"BethanyG"
]
},
{
"uuid": "",
"slug": "",
"title": "",
"blurb": "",
"authors": [
"BethanyG"
]
}
]
}
18 changes: 18 additions & 0 deletions exercises/practice/protein-translation/.approaches/introduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Introduction

The goal of the `Protein Translation` exercise is to transform an input string representing mRNA [codons][codons] to a `list` of corresponding [amino acid][amino acids] names.

There are many different ways to solve this problem in Python, but all solutions use some form of mapping that connects three-letter codon codes to their amino acid names.
The most common mapping is to use a dictionary, but [`Enums`][enums]









[codons]: https://en.wikipedia.org/wiki/DNA_and_RNA_codon_tables
[amino acids]: https://en.wikipedia.org/wiki/Amino_acid#:~:text=Amino%20acids%20are%20the%20precursors,to%20two%20neighboring%20amino%20acids.
[enums]: https://docs.python.org/3/howto/enum.html#
Empty file.
1 change: 1 addition & 0 deletions exercises/practice/protein-translation/.meta/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ description = "Tyrosine RNA sequence 1"

[47bcfba2-9d72-46ad-bbce-22f7666b7eb1]
description = "Tyrosine RNA sequence 2"
include = false

[3a691829-fe72-43a7-8c8e-1bd083163f72]
description = "Cysteine RNA sequence 1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# These tests are auto-generated with test data from:
# https://github.com/exercism/problem-specifications/tree/main/exercises/protein-translation/canonical-data.json
# File last updated on 2024-07-08
# File last updated on 2025-01-11

import unittest

Expand Down Expand Up @@ -60,11 +60,6 @@ def test_tyrosine_rna_sequence_1(self):
expected = ["Tyrosine"]
self.assertEqual(proteins(value), expected)

def test_tyrosine_rna_sequence_2(self):
value = "UAC"
expected = ["Tyrosine"]
self.assertEqual(proteins(value), expected)

def test_cysteine_rna_sequence_1(self):
value = "UGU"
expected = ["Cysteine"]
Expand Down

0 comments on commit 9f1911b

Please sign in to comment.