Possible Duplicate:
Good Primer for Python Slice Notation
I’ve been reading over some sample code lately and I’ve read quite a few websites but I just can’t seem to get the query right to give me an answer I’m looking for. If anyone could help me out I’d appreciate it.
It slices
if you use
skip = 2, every other element the list beginning atstartAtand ending atendBeforewill be selected. [Remember: indices live BETWEEN list elements]To see this, enter
at the Python prompt. Then try these things
and see what happens.