2011-04-13, 12:50 AM
None of that works. Closest is the revision XTOTHEL did. I think I had that earlier, it is giving the same output as I was getting originally before I started to tinker with it. I get the first letter of the input then the backwards input, but it is horizontal, then I get a traceback error. So it looks like this:
Code:
Word: crap
c
p
a
r
c
Traceback (most recent call last):
File "G:\python\backwards.py", line 10, in <module>
backwards_word(words)
File "G:\python\backwards.py", line 4, in backwards_word
letter = words[index]
IndexError: string index out of range
