Skip to content

Commit b31d2b2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1c7710d commit b31d2b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

strings/longest_word_in_sentence.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ def longest_word(sentence: str) -> str:
1212
'a'
1313
"""
1414
words = sentence.split()
15-
return max(words, key=len) if words else ''
15+
return max(words, key=len) if words else ""
16+
1617

1718
if __name__ == "__main__":
1819
from doctest import testmod
20+
1921
testmod()

0 commit comments

Comments
 (0)