We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a64f79b + 1495aa5 commit c35ae47Copy full SHA for c35ae47
requirements.txt
@@ -1,4 +1,4 @@
1
-astroid==3.3.11
+astroid==4.0.1
2
attrs==25.4.0
3
autopep8==2.3.2
4
coverage==7.11.0
@@ -15,7 +15,7 @@ platformdirs==4.5.0
15
pluggy==1.6.0
16
pycodestyle==2.14.0
17
pyflakes==3.4.0
18
-pylint==3.3.9
+pylint==4.0.1
19
pyright==1.1.406
20
pytest==8.4.2
21
pytest-cov==7.0.0
src/projecteuler/helpers/word_score.py
-_scoreLetter = {
+SCORE_LETTER = {
'A': 1,
'B': 2,
'C': 3,
@@ -32,7 +32,7 @@ def wordScore(word: str) -> int:
32
result = 0
33
34
for letter in word:
35
- if letter in _scoreLetter:
36
- result += _scoreLetter[letter]
+ if letter in SCORE_LETTER:
+ result += SCORE_LETTER[letter]
37
38
return result
0 commit comments