2011-04-12, 10:58 PM
So, basically I have to return a string backwards. So if I input "Cookies are freaking good.", it has to return, ".doog gnikaerf era seikooC".
Here's what I think has to be done, but it isn't working.
Here's what I think has to be done, but it isn't working.
Quote:def backwards_word(words):
index = 0
while index <= len(words):
letter = words[index]
print letter
index -= 0
words = raw_input("Word: ")
backwards_word(words)

