loading...

re: Daily Challenge #263 - Reverse Words VIEW POST

FULL DISCUSSION
 

Another Python:

def reverse_words(s):
 for word in s.split():
  s = s.replace(word, word[::-1])
 return s

Try it online!

code of conduct - report abuse