0

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?

Sven Krüger
  • 1,177
  • 10
  • 18

0 Answers0