File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -62,12 +62,12 @@ def rot13(text):
62
62
return "" .join ([rot .get (c , c ) for c in text ])
63
63
64
64
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
67
67
# as they were in the original sentence, we can't just use "split" to
68
68
# separate the sentence into words, since this would lose the track
69
69
# 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.
71
71
72
72
def translate_words (sentence , word_func ):
73
73
result , word = '' , ''
You can’t perform that action at this time.
0 commit comments