[Tutor] is the the two style of writting the same?

sikonai sikonai tanjyunda at gmail.com
Tue Aug 20 11:20:23 CEST 2013


>>> list=[1,2,3,4,5,6,7,8,9]
>>> list[9:0:-2]
[9, 7, 5, 3]
>>> list[10:0:-2]
[9, 7, 5, 3]

I want to know whether they have some difference.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130820/7aa5cee3/attachment-0001.html>


More information about the Tutor mailing list