Skip to content

Commit d12884f

Browse files
committed
convert code snippets to single quotes for consistency
1 parent 0e036e9 commit d12884f

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# dictionary look-up with `join`
22

33
```python
4-
LOOKUP = {"G": "C", "C": "G", "T": "A", "A": "U"}
4+
LOOKUP = {'G': 'C', 'C': 'G', 'T': 'A', 'A': 'U'}
55

66

77
def to_rna(dna_strand):
@@ -29,7 +29,7 @@ A generator expression is similar to a [list comprehension][list-comprehension],
2929
A variant that uses a list comprehension is almost identical, but note the additional square brackets inside the `join()`:
3030

3131
```python
32-
LOOKUP = {"G": "C", "C": "G", "T": "A", "A": "U"}
32+
LOOKUP = {'G': 'C', 'C': 'G', 'T': 'A', 'A': 'U'}
3333

3434

3535
def to_rna(dna_strand):

exercises/practice/rna-transcription/.approaches/dictionary-join/snippet.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
LOOKUP = {"G": "C", "C": "G", "T": "A", "A": "U"}
1+
LOOKUP = {'G': 'C', 'C': 'G', 'T': 'A', 'A': 'U'}
22

33

44
def to_rna(dna_strand):

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Using a dictionary look-up with `join()` transcribes using the string values of
1313
## Approach: `translate()` with `maketrans()`
1414

1515
```python
16-
LOOKUP = str.maketrans("GCTA", "CGAU")
16+
LOOKUP = str.maketrans('GCTA', 'CGAU')
1717

1818

1919
def to_rna(dna_strand):
@@ -26,7 +26,7 @@ For more information, check the [`translate()` with `maketrans()` approach][appr
2626
## Approach: dictionary look-up with `join()`
2727

2828
```python
29-
LOOKUP = {"G": "C", "C": "G", "T": "A", "A": "U"}
29+
LOOKUP = {'G': 'C', 'C': 'G', 'T': 'A', 'A': 'U'}
3030

3131

3232
def to_rna(dna_strand):

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# `translate()` with `maketrans()`
22

33
```python
4-
LOOKUP = str.maketrans("GCTA", "CGAU")
4+
LOOKUP = str.maketrans('GCTA', 'CGAU')
55

66

77
def to_rna(dna_strand):

exercises/practice/rna-transcription/.approaches/translate-maketrans/snippet.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
LOOKUP = str.maketrans("GCTA", "CGAU")
1+
LOOKUP = str.maketrans('GCTA', 'CGAU')
22

33

44
def to_rna(dna_strand):

0 commit comments

Comments
 (0)