Skip to content

Commit 04b8230

Browse files
authored
Fix word length calculation (#112)
1 parent 2a7efcf commit 04b8230

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎python-open-source-challenge/issue-03.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def word_lengths(sentence):
1616
lengths = {}
1717
for word in words:
1818
# TODO: Check how repeated words and their lengths are recorded.
19-
lengths[word] = len(word) + 1
19+
lengths[word] = len(word)
2020
# TODO: Check punctuation and whitespace behavior.
2121
return lengths
2222
# TODO: Check whether the result preserves the required information.

0 commit comments

Comments
 (0)