Fetching latest headlines…
Code Challenge of the Day — Reverse word order (easy)
NORTH AMERICA
🇺🇸 United StatesJuly 2, 2026

Code Challenge of the Day — Reverse word order (easy)

0 views0 likes0 comments
Originally published byDev.to

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

Solve it interactively in your browser (no setup), check your answer instantly, and keep your daily streak going on IWTLP: https://iwtlp.com/challenge

Comments (0)

Sign in to join the discussion

Be the first to comment!