list[0:9]
and list[1:10]
were showing same in my python IDLE. I'm not sure the logic behind, could some one please explain. Please see the values retrieved below.
>>> list[0:9]
[1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> list[0:10]
[1, 2, 3, 4, 5, 6, 7, 8, 9]