Skip to content

Commit 9fee436

Browse files
authored
Add files via upload
1 parent 4ff014e commit 9fee436

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stringproblems.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ def rot13(text):
6262
return "".join([rot.get(c, c) for c in text])
6363

6464

65-
# Given a sentence and a function wf that converts one word, translate
66-
# the entire sentence. Since whitespace and punctuation must be kept
65+
# Translate the entire sentence given a function word_func that converts
66+
# one word. Since whitespace and punctuation characters must be kept
6767
# as they were in the original sentence, we can't just use "split" to
6868
# separate the sentence into words, since this would lose the track
6969
# of what the whitespace and punctuation were in the original text.
70-
# Instead, break the sentence into words the hard way.
70+
# Instead, we have to break the sentence into words the hard way.
7171

7272
def translate_words(sentence, word_func):
7373
result, word = '', ''

0 commit comments

Comments
 (0)