mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-04-06 22:05:54 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
7dd05d70d8
commit
b908d84c0f
@ -23,6 +23,8 @@ def longest_word(sentence: str) -> str:
|
|||||||
words = sentence.split()
|
words = sentence.split()
|
||||||
return max(words, key=len) if words else ""
|
return max(words, key=len) if words else ""
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
from doctest import testmod
|
from doctest import testmod
|
||||||
|
|
||||||
testmod()
|
testmod()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user