Given:

numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

can someone explain to me why

numbers[10:0:-2] results in [10, 8, 6, 4, 2]?

I thought the first index, whether going forward or backward, was 
inclusive. And there is no index of 10 in this list, so what is it 
referring to?

Thanks.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to