Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c5cd969

Browse files
committedJul 7, 2024·
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1b9bde3 commit c5cd969

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎strings/longest_word_in_sentence.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ def longest_word(sentence: str) -> str:
2121
'thousand'
2222
"""
2323
words = sentence.split()
24-
return max(words, key=len) if words else ''
24+
return max(words, key=len) if words else ""
25+
2526

2627
if __name__ == "__main__":
2728
from doctest import testmod
29+
2830
testmod()

0 commit comments

Comments
 (0)
Please sign in to comment.