Skip to content

Commit 7dd05d7

Browse files
authored
Update longest_word_in_sentence.py
1 parent c5cd969 commit 7dd05d7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

strings/longest_word_in_sentence.py

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

26-
2726
if __name__ == "__main__":
2827
from doctest import testmod
29-
3028
testmod()

0 commit comments

Comments
 (0)