Skip to content

Commit 0e036e9

Browse files
committed
move note regarding testing for erroneous inputs to introduction.md
... because it applies to the exercise in general, not a particular approach.
1 parent 8ee9a2f commit 0e036e9

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

exercises/practice/rna-transcription/.approaches/dictionary-join/content.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ def to_rna(dna_strand):
3939
For a relatively small number of elements, using lists is fine and may be faster, but as the number of elements increases, the memory consumption increases and performance decreases.
4040
You can read more about [when to choose generators over list comprehensions][list-comprehension-choose-generator-expression] to dig deeper into the topic.
4141

42-
43-
~~~~exercism/note
44-
As of this writing, no invalid DNA characters are in the argument to `to_rna()`, so there is no error handling required for invalid input.
45-
~~~~
46-
4742
[dictionaries]: https://docs.python.org/3/tutorial/datastructures.html?#dictionaries
4843
[const]: https://realpython.com/python-constants/
4944
[join]: https://docs.python.org/3/library/stdtypes.html?#str.join

exercises/practice/rna-transcription/.approaches/introduction.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ For more information, check the [dictionary look-up with `join()` approach][appr
4141
If performance matters, consider using the [`translate()` with `maketrans()` approach][approach-translate-maketrans].
4242
How an implementation behaves in terms of performance may depend on the actual data being processed, on hardware, and other factors.
4343

44+
45+
~~~~exercism/note
46+
As of this writing, no invalid DNA characters are in the argument to `to_rna()`, so there is no error handling required for invalid input.
47+
~~~~
48+
4449
[Unicode]: https://en.wikipedia.org/wiki/Unicode
4550
[approach-translate-maketrans]: https://exercism.org/tracks/python/exercises/rna-transcription/approaches/translate-maketrans
4651
[approach-dictionary-join]: https://exercism.org/tracks/python/exercises/rna-transcription/approaches/dictionary-join

exercises/practice/rna-transcription/.approaches/translate-maketrans/content.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ In the `to_rna()` function, the [`translate()`][translate] method is called on t
2626
and is passed the translation table.
2727
The output of `translate()` is a string where all of the input DNA characters have been replaced by their RNA complement in the translation table.
2828

29-
30-
~~~~exercism/note
31-
As of this writing, no invalid DNA characters are in the argument to `to_rna()`, so there is no error handling required for invalid input.
32-
~~~~
33-
3429
[dictionaries]: https://docs.python.org/3/tutorial/datastructures.html?#dictionaries
3530
[maketrans]: https://docs.python.org/3/library/stdtypes.html?#str.maketrans
3631
[const]: https://realpython.com/python-constants/

0 commit comments

Comments
 (0)