Posted on Jul 2 • Edited on Jul 15
#challenge #python #beginners #programming
Return the string with the order of space-separated words reversed (collapse extra spaces).
Write reverse_words(s).
Starter:
def reverse_words(s):
# TODO
pass
Enter fullscreen mode Exit fullscreen mode
Solve it interactively in your browser (no setup), check your answer instantly, and keep your daily streak going on IWTLP: https://iwtlp.com/challenge
Top comments (0)
Subscribe
Templates let you quickly answer FAQs or store snippets for re-use.
Code of Conduct • Report abuse
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment’s permalink.
Hide child comments as well
For further actions, you may consider blocking this person and/or reporting abuse
답글 남기기