Skip to content

Commit 4811cb9

Browse files
authored
Clarify docstring for reverse_letters function
1 parent 2c15b8c commit 4811cb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

strings/reverse_letters.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
def reverse_letters(sentence: str, length: int = 0) -> str:
22
"""
3-
Reverse all words that are longer than the given length of characters in a sentence.
3+
Reverse all words whose length is strictly greater than the given length value.
4+
Words with length equal to the given length are not reversed.
45
If unspecified, length is taken as 0
56
67
>>> reverse_letters("Hey wollef sroirraw", 3)

0 commit comments

Comments
 (0)