Rewind that!
The following loop will reverse a string. It is very easy to do!
text = "reverse me"
x = len(text) -1
temp = ""
while x >=0:
temp = temp + text[x]
x = x - 1
print temp
We start at the end of the string (remember strings start at 0 which is why we subtract 1!) and then loop over every letter adding it to a new variable. This will build up the reversed word.
Change the code so when it sees a space it will print out the value of temp (this should be inside the loop and should use a if statement.) If you get stuck you may wish to look at this exercise again!
Output: (clear)











