[Tutor] IndexError: string index out of range
Max Noel
maxnoel_fr at yahoo.fr
Wed Nov 3 14:35:58 CET 2004
On Nov 3, 2004, at 12:30, Liam Clarke wrote:
>>>>>> message[::-1]
>>>> message[3:7:-1]
>
> In the above, the[ ::-1] just defaults to [0:end of string:step]?
Yup, it does. Beautiful, isn't it?
-- Max
maxnoel_fr at yahoo dot fr -- ICQ #85274019
"Look at you hacker... A pathetic creature of meat and bone, panting
and sweating as you run through my corridors... How can you challenge a
perfect, immortal machine?"
More information about the Tutor
mailing list