2011-04-13, 01:25 AM
Fiel Wrote:Start with -1, not with 0
Code:word = 'crap'
for index in range(-1, -len(word)-1, -1):
print(word[index]),
That works to make it horizontal, which is the biggest problem, but I'm still getting that pesky double front letter and the traceback.

Code:
Word: How in the world?
? d l r o w e h t n i w o H H
Traceback (most recent call last):
File "G:\python\backwards.py", line 11, in <module>
backwards_word(words)
File "G:\python\backwards.py", line 5, in backwards_word
letter = words[index]
IndexError: string index out of range
