[Tutor] Python backwards program
Tony Meyer
tameyer at ihug.co.nz
Thu Apr 14 01:38:58 CEST 2005
> In the print word [::-1] line it gives me this message
> (sequence index must be an integer) What does that mean
As others have said, it means you're using Python 2.2 or older (so can't use
extended slicing). It seems likely that what you're after is the loop
approach that has been mentioned by various people, including me. Have a go
with that method, and give us the code that you have, along with any
error/output that you get.
=Tony.Meyer
More information about the Tutor
mailing list