Thomas Covello wrote: > Why does the following code give this error: > >>>>[0, 1, 2, 3, 4][::2] > > TypeError: sequence index must be integer This is what I get: >>> [0, 1, 2, 3, 4][::2] [0, 2, 4] Are you using 2.3.x? I believe extended slices didn't show up until 2.3.