2011-04-12, 11:13 PM
don't know too much python...but I think you can try
"index -= 1", instead of 0. or just "index--"
also you want it to be "index = len(words)"
and "while index <= 0"
you actually don't need letter, just do "print words[index]"
IDK HOW INDENTING WORKS, so figure that part out yourself.
"index -= 1", instead of 0. or just "index--"
also you want it to be "index = len(words)"
and "while index <= 0"
you actually don't need letter, just do "print words[index]"
Code:
def backwards_word(words):
index = len(words)
while index <= 0:
print words[index]
index --
words = raw_input("Word: ")
backwards_word(words)IDK HOW INDENTING WORKS, so figure that part out yourself.

