Hoffmann wrote: > --- Kent Johnson <[EMAIL PROTECTED]> wrote: > >>You are confusing the index of a letter - the number >>which represents >>its position in the word - with the letter itself. >>In your code, index >>and index_zero are actually letters, not indices. >>Try to rewrite the >>code so they are numbers. > > Sorry for not showing the traceback the first time. > Please, see it below: > > Traceback (most recent call last): > File "<stdin>", line 2, in ? > TypeError: string indices must be integers > > Any hint?
Already gave the hint in the first part of my reply. The error message repeats it. Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor