def reverseStr(s):
return ' '.join([x[::-1] for x in s.split(' ')])
6
solved How do I reverse words in a string with Python
def reverseStr(s):
return ' '.join([x[::-1] for x in s.split(' ')])
6
solved How do I reverse words in a string with Python