From 7dd05d70d8a570921163ab5080bbb676ef6683d3 Mon Sep 17 00:00:00 2001 From: Saurabh Mahapatra <98408932+its-100rabh@users.noreply.github.com> Date: Sun, 7 Jul 2024 10:16:18 +0530 Subject: [PATCH] Update longest_word_in_sentence.py --- strings/longest_word_in_sentence.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/strings/longest_word_in_sentence.py b/strings/longest_word_in_sentence.py index 4389236d8..0d81d7910 100644 --- a/strings/longest_word_in_sentence.py +++ b/strings/longest_word_in_sentence.py @@ -23,8 +23,6 @@ def longest_word(sentence: str) -> str: words = sentence.split() return max(words, key=len) if words else "" - if __name__ == "__main__": from doctest import testmod - testmod()