list IndexError

M.E.Farmer mefjr75 at hotmail.com
Wed Dec 22 23:32:30 CET 2004


Hello Ishwor ,
The simpliest way I can explain slicing is that the slices point to the
spot *between* the items......
Take this list for example
slicer =  [0,1,2,3,4,5]
>>> slicer [1]
1
>>> slicer [1:2]
[1]
>>> slicer [:-1]
 [0,1,2,3,4] 
>>> slicer[2,4]
[2,3]

Hth,
 M.E.Farmer




More information about the Python-list mailing list