Skip to content

Commit a8d376f

Browse files
committed
Merge pull request exercism#270 from orozcoadrian/master
nucleotide-count: refactor by removing duplication.
2 parents c7cc16b + 8c297e4 commit a8d376f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nucleotide-count/example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
NUCLEOTIDES = 'ATCGU'
1+
NUCLEOTIDES = 'ATCG'
22

33

44
def count(strand, abbreviation):
@@ -9,7 +9,7 @@ def count(strand, abbreviation):
99
def nucleotide_counts(strand):
1010
return {
1111
abbr: strand.count(abbr)
12-
for abbr in 'ATGC'
12+
for abbr in NUCLEOTIDES
1313
}
1414

1515

0 commit comments

Comments
 (0)