Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Backward solution in Clear category for Backward Each Word by kamjir
def backward_string_by_word(text: str) -> str:
word = ""
result = ""
for ch in text:
if ch == " ":
result += word[::-1]+ch
word = ""
else: word += ch
result += word[::-1]
return result
Sept. 28, 2020