I do not quite understand why a slice of a list does not throw an exception, when the low index is larger than the length of the list. Instead an empty list is returned.
>> [1, 2, 3][1000:]
[]
Why is this?
I do not quite understand why a slice of a list does not throw an exception, when the low index is larger than the length of the list. Instead an empty list is returned.
>> [1, 2, 3][1000:]
[]
Why is this?