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 b908d84

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 7dd05d7 commit b908d84

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎strings/longest_word_in_sentence.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ def longest_word(sentence: str) -> str:
2323
words = sentence.split()
2424
return max(words, key=len) if words else ""
2525

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

0 commit comments

Comments
 (0)
Please sign in to comment.