mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
Tighten up psf/black and flake8 (#2024)
* Tighten up psf/black and flake8
* Fix some tests
* Fix some E741
* Fix some E741
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@@ -11,10 +11,7 @@ def reverse_words(input_str: str) -> str:
|
||||
>>> reverse_words(sentence)
|
||||
'Python love I'
|
||||
"""
|
||||
input_str = input_str.split(" ")
|
||||
new_str = list()
|
||||
|
||||
return " ".join(reversed(input_str))
|
||||
return " ".join(reversed(input_str.split(" ")))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user